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 fcb1cd748125a19e03354af400b936b7eac8d6d9..d7e3038de4051d12abf07c69a9879ab0a3aa69f0 100644 --- a/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java +++ b/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java @@ -135,9 +135,10 @@ public class IntegrationTestHelper private void createAccountOnImport(String accountName) { + WebDriverWait wait = new WebDriverWait(driver, 5); + wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("button-new-account"))); driver.findElement(By.className("button-new-account")).click(); - WebDriverWait wait = new WebDriverWait(driver, 5); wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("account-name"))); WebElement inputAccountName = driver.findElement(By.id("account-name")); inputAccountName.sendKeys(accountName);