Skip to content

Commit

Permalink
#724 - assert csv import preview
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlocker8 committed Jan 21, 2023
1 parent 4a478de commit 64c0e6d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,14 @@ private void uploadAndSetColumnSettings()

assertThat(driver.findElement(By.id("csv-file-name")).getText()).isEqualTo("three_entries.csv");

final List<WebElement> overviewRows = driver.findElements(By.cssSelector("#transaction-import-overview tr"));
assertThat(overviewRows).hasSize(4);
final List<WebElement> columns = overviewRows.get(1).findElements(By.tagName("td"));
assertThat(columns).hasSize(3);
assertThat(columns.get(0).getText()).isEqualTo("03.01.2023");
assertThat(columns.get(1).getText()).isEqualTo("Lorem");
assertThat(columns.get(2).getText()).isEqualTo("50.00");

fillColumnSettings(1, "dd.MM.yyyy", 2, 3, 2);

wait = new WebDriverWait(driver, Duration.ofSeconds(5));
Expand Down

0 comments on commit 64c0e6d

Please sign in to comment.