fixing e2e-checks run
This commit is contained in:
parent
7514c74884
commit
32f97870c0
2 changed files with 8 additions and 3 deletions
|
@ -14,6 +14,7 @@ import org.openqa.selenium.remote.DesiredCapabilities;
|
|||
import org.testcontainers.containers.BindMode;
|
||||
import org.testcontainers.containers.GenericContainer;
|
||||
import org.testcontainers.utility.DockerImageName;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
|
||||
|
@ -47,7 +48,9 @@ public class BaseTest {
|
|||
"-conf", "/etc/selenoid/browsers.json", "-log-output-dir", "/opt/selenoid/logs");
|
||||
|
||||
static {
|
||||
Dotenv.load().entries().forEach(env -> System.setProperty(env.getKey(), env.getValue()));
|
||||
if (new File("./.env").exists()) {
|
||||
Dotenv.load().entries().forEach(env -> System.setProperty(env.getKey(), env.getValue()));
|
||||
}
|
||||
if (TestConfiguration.CLEAR_REPORTS_DIR) {
|
||||
clearReports();
|
||||
}
|
||||
|
@ -73,7 +76,8 @@ public class BaseTest {
|
|||
Configuration.reportsFolder = TestConfiguration.REPORTS_FOLDER;
|
||||
if (!TestConfiguration.USE_LOCAL_BROWSER) {
|
||||
Configuration.remote = remote;
|
||||
TestConfiguration.BASE_URL = TestConfiguration.BASE_URL.replace("localhost", "host.docker.internal");
|
||||
TestConfiguration.BASE_URL =
|
||||
TestConfiguration.BASE_URL.replace("localhost", "host.docker.internal");
|
||||
}
|
||||
Configuration.screenshots = TestConfiguration.SCREENSHOTS;
|
||||
Configuration.savePageSource = TestConfiguration.SAVE_PAGE_SOURCE;
|
||||
|
|
|
@ -3,12 +3,13 @@ package com.provectus.kafka.ui;
|
|||
import com.provectus.kafka.ui.base.BaseTest;
|
||||
import io.qameta.allure.Issue;
|
||||
import lombok.SneakyThrows;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class SmokeTests extends BaseTest {
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
@SneakyThrows
|
||||
@DisplayName("main page should load")
|
||||
@Issue("380")
|
||||
|
|
Loading…
Add table
Reference in a new issue