From 989b4982deb431243f4471faab65a489348853ab Mon Sep 17 00:00:00 2001
From: Robert Goldmann <deadlocker@gmx.de>
Date: Sun, 22 Nov 2020 17:24:39 +0100
Subject: [PATCH] stabilized integration tests

---
 .../integration/helpers/IntegrationTestHelper.java             | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java b/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java
index a2777e697..fdf17be49 100644
--- a/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java
+++ b/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java
@@ -163,6 +163,9 @@ public class IntegrationTestHelper
 			WebElement sourceAccount = row.findElement(By.className("account-source"));
 			assertEquals(sourceAccounts.get(i), IntegrationTestHelper.getTextNode(sourceAccount));
 
+			WebDriverWait wait = new WebDriverWait(driver, 5);
+			wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("select-dropdown")));
+
 			row.findElement(By.className("select-dropdown")).click();
 			WebElement accountToSelect = row.findElement(By.xpath("//form/table/tbody/tr[" + (i + 1) + "]/td[5]/div/div/ul/li/span[text()='" + account + "']"));
 			accountToSelect.click();
-- 
GitLab