Skip to content
Snippets Groups Projects
Commit a31991a0 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#725 - fixed selenium tests

parent fe505d04
Branches
Tags
No related merge requests found
Pipeline #6893 passed
...@@ -342,9 +342,9 @@ class AccountTest extends SeleniumTestBase ...@@ -342,9 +342,9 @@ class AccountTest extends SeleniumTestBase
// assert // assert
List<WebElement> transactionsRows = driver.findElements(By.cssSelector(".transaction-container .hide-on-med-and-down.transaction-row-top")); List<WebElement> transactionsRows = driver.findElements(By.cssSelector(".transaction-container .hide-on-med-and-down.transaction-row-top"));
assertThat(transactionsRows).hasSize(2); assertThat(transactionsRows).hasSize(3);
final WebElement row = transactionsRows.get(0); final WebElement row = transactionsRows.get(1);
final List<WebElement> columns = row.findElements(By.className("col")); final List<WebElement> columns = row.findElements(By.className("col"));
// check columns // check columns
......
...@@ -133,9 +133,9 @@ class SearchTest extends SeleniumTestBase ...@@ -133,9 +133,9 @@ class SearchTest extends SeleniumTestBase
assertThat(driver.findElement(By.cssSelector(".headline-date")).getText()).isEqualTo("May 2019"); assertThat(driver.findElement(By.cssSelector(".headline-date")).getText()).isEqualTo("May 2019");
List<WebElement> transactionsRows = driver.findElements(By.cssSelector(".transaction-container .hide-on-med-and-down.transaction-row-top")); List<WebElement> transactionsRows = driver.findElements(By.cssSelector(".transaction-container .hide-on-med-and-down.transaction-row-top"));
assertThat(transactionsRows).hasSize(25); assertThat(transactionsRows).hasSize(26);
assertThat(transactionsRows.get(0).getAttribute("class")).contains("transaction-row-highlighted"); assertThat(transactionsRows.get(1).getAttribute("class")).contains("transaction-row-highlighted");
for(int i = 1; i < transactionsRows.size(); i++) for(int i = 2; i < transactionsRows.size(); i++)
{ {
assertThat(transactionsRows.get(i).getAttribute("class")).doesNotContain("transaction-row-highlighted"); assertThat(transactionsRows.get(i).getAttribute("class")).doesNotContain("transaction-row-highlighted");
} }
...@@ -149,8 +149,8 @@ class SearchTest extends SeleniumTestBase ...@@ -149,8 +149,8 @@ class SearchTest extends SeleniumTestBase
assertThat(driver.findElement(By.cssSelector(".headline-date")).getText()).isEqualTo("May 2019"); assertThat(driver.findElement(By.cssSelector(".headline-date")).getText()).isEqualTo("May 2019");
List<WebElement> transactionsRows = driver.findElements(By.cssSelector(".transaction-container .hide-on-med-and-down.transaction-row-top")); List<WebElement> transactionsRows = driver.findElements(By.cssSelector(".transaction-container .hide-on-med-and-down.transaction-row-top"));
assertThat(transactionsRows).hasSize(25); assertThat(transactionsRows).hasSize(26);
assertThat(transactionsRows.get(0).getAttribute("class")).contains("transaction-row-highlighted"); assertThat(transactionsRows.get(1).getAttribute("class")).contains("transaction-row-highlighted");
// open global account select // open global account select
final WebElement globalAccountSelect = driver.findElement(By.id("globalAccountSelect")); final WebElement globalAccountSelect = driver.findElement(By.id("globalAccountSelect"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment