package ru.kovbasa.tests;

import com.google.inject.Inject;
import org.junit.jupiter.api.extension.ExtendWith;
import ru.kovbasa.config.GuiceExtension;
import ru.kovbasa.playwright.PlaywrightExtension;
import ru.kovbasa.playwright.TestConfig;
import ru.kovbasa.playwright.TestResources;
import com.microsoft.playwright.Page;

@ExtendWith({GuiceExtension.class, PlaywrightExtension.class})
public abstract class BaseTest {

    @Inject
    protected TestResources resources;

    @Inject
    protected TestConfig config;

    protected Page page() {
        return resources.getPage();
    }
}
