Skip to content

Commit

Permalink
Merge pull request #197 from SCADA-LTS/develop
Browse files Browse the repository at this point in the history
update selenide from 6.14.1 to 6.17.1 - fixed work with chrome/chrome…
  • Loading branch information
Limraj authored Aug 24, 2023
2 parents a8d4485 + 9e93e2d commit 5262fb7
Show file tree
Hide file tree
Showing 25 changed files with 36 additions and 28 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>org.scadalts</groupId>
<artifactId>scada-lts-e2e</artifactId>
<name>Scada-LTS-E2E</name>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
<packaging>pom</packaging>

<modules>
Expand Down Expand Up @@ -43,7 +43,7 @@
<scada-lts-e2e-service-impl.version>${project.version}</scada-lts-e2e-service-impl.version>
<scada-lts-e2e-service-core.version>${project.version}</scada-lts-e2e-service-core.version>

<selenide.version>6.14.1</selenide.version>
<selenide.version>6.17.1</selenide.version>
<selenium-opera-driver.version>4.4.0</selenium-opera-driver.version>
<junit.version>4.13.1</junit.version>
<lombok.version>1.18.24</lombok.version>
Expand Down Expand Up @@ -635,7 +635,7 @@
<configuration>
<fork>true</fork>
<mainClass>${start-class}</mainClass>
<finalName>${project.artifactId}-${project.version}-${test.e2e.env}-${test.e2e.browser-ref}${test.e2e.custom-name}</finalName>
<finalName>${project.artifactId}-${project.version}-${test.e2e.env}-${test.e2e.browser-ref}</finalName>
</configuration>
<executions>
<execution>
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.scadalts</groupId>
<artifactId>scada-lts-e2e</artifactId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.scadalts</groupId>
<artifactId>scada-lts-e2e</artifactId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>scada-lts-e2e</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>scada-lts-e2e-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-common/scada-lts-e2e-common-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-common</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-common/scada-lts-e2e-common-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-common</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public interface E2eConfig {

boolean isScreenshotMode();

@Deprecated
boolean isDriverManagerMode();

boolean isContinuousMode();
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-common/scada-lts-e2e-common-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-common</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-page/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>scada-lts-e2e</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-page/scada-lts-e2e-page-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-page</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>scada-lts-e2e-page-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-page/scada-lts-e2e-page-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-page</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void init(E2eConfig config) {
Configuration.baseUrl = config.getUrlAppBeingTested().toString();
Configuration.browser = config.getBrowserRef().name().toLowerCase();
Configuration.pageLoadStrategy = config.getPageLoadStrategy().name().toLowerCase();
Configuration.driverManagerEnabled = config.isDriverManagerMode();
//Configuration.driverManagerEnabled = config.isDriverManagerMode();
Configuration.screenshots = config.isScreenshotMode();
Configuration.headless = config.isHeadlessMode();
Configuration.reportsUrl = config.getReportsUrl() == null ? null : config.getReportsUrl().toString();
Expand Down Expand Up @@ -104,7 +104,7 @@ private static void _initDefault() {
Configuration.baseUrl = E2eConfiguration.baseUrl.toString();
Configuration.browser = "chrome";
Configuration.pageLoadStrategy = "normal";
Configuration.driverManagerEnabled = false;
//Configuration.driverManagerEnabled = false;
Configuration.screenshots = true;
Configuration.headless = false;
Configuration.reportsUrl = "";
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-page/scada-lts-e2e-page-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-page</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>scada-lts-e2e-page-impl</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public LoginPage setPassword(String password) {

public NavigationPage login() {
this.loginButton.click();
return page(NavigationPage.openPage());
printCurrentUrl();
return NavigationPage.openPage(getCurrentUrl());
}

public static String getUrlRef() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ public interface NavigationPage extends PageObject<NavigationPage>, PageClosable

static NavigationPage openPage() {
return open(URL_REF, NavigationPageImpl.class);
// .acceptAlertOnPage();
}

static NavigationPage openPage(String url) {
return open(url, NavigationPageImpl.class);
}

static NavigationPage openRootPage() {
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-service/scada-lts-e2e-service-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-service</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-service/scada-lts-e2e-service-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-service</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-service/scada-lts-e2e-service-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-service</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>scada-lts-e2e</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-test/scada-lts-e2e-test-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.scadalts</groupId>
<artifactId>scada-lts-e2e-test</artifactId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-test/scada-lts-e2e-test-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-test</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion scada-lts-e2e-test/scada-lts-e2e-test-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>scada-lts-e2e-test</artifactId>
<groupId>org.scadalts</groupId>
<version>23.0.7-SNAPSHOT</version>
<version>23.0.9-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ public void after() {

@AfterClass
public static void clean() {
_clean();
try {
_clean();
} finally {
System.gc();
}
}

private static void _clean() {
Expand All @@ -73,7 +77,6 @@ private static void _clean() {
if(TestWithoutPageUtil.isApiLogged())
TestWithoutPageUtil.close();
}
System.gc();
}

private void _preconfig(GroovyExecute execute) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void clean() {
public void test_login() {

//when:
NavigationPage navigationPage = TestWithPageUtil.openNavigationPage();
NavigationPage navigationPage = TestWithPageUtil.openNavigationPage().acceptAlertOnPageSlow().waitOnPage(500);

//and:
String userName = navigationPage.getUserName();
Expand Down

0 comments on commit 5262fb7

Please sign in to comment.