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

#645 - added missing assertion

parent b12c6fa0
No related branches found
No related tags found
No related merge requests found
Pipeline #5370 failed
......@@ -6,11 +6,15 @@ import de.deadlocker8.budgetmaster.authentication.UserService;
import de.deadlocker8.budgetmaster.integration.helpers.IntegrationTestHelper;
import de.deadlocker8.budgetmaster.integration.helpers.SeleniumTestBase;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
class ImportTest extends SeleniumTestBase
{
@Test
......@@ -27,5 +31,10 @@ class ImportTest extends SeleniumTestBase
final Account account1 = new Account("DefaultAccount0815", AccountType.CUSTOM);
final Account account2 = new Account("Account2", AccountType.CUSTOM);
helper.uploadDatabase(path, sourceAccounts, List.of(account1, account2));
// assert
driver.get(helper.getUrl() + "/accounts");
List<WebElement> accountRows = driver.findElements(By.cssSelector(".account-container tr"));
assertThat(accountRows).hasSize(3);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment