From adc7dcbe6986bfdb97de24c5b48ebd1f841a0a8e Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 25 Aug 2016 15:18:22 +0200 Subject: [PATCH] make BackgroundTasksTest more stable --- .../java/it/projectAdministration/BackgroundTasksTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/it/it-tests/src/test/java/it/projectAdministration/BackgroundTasksTest.java b/it/it-tests/src/test/java/it/projectAdministration/BackgroundTasksTest.java index a27df0b5015..46ad5307f85 100644 --- a/it/it-tests/src/test/java/it/projectAdministration/BackgroundTasksTest.java +++ b/it/it-tests/src/test/java/it/projectAdministration/BackgroundTasksTest.java @@ -32,6 +32,7 @@ import pageobjects.BackgroundTasksPage; import pageobjects.Navigation; import util.selenium.SeleneseTest; +import static com.codeborne.selenide.CollectionCondition.sizeGreaterThan; import static util.ItUtils.projectDir; public class BackgroundTasksTest { @@ -61,6 +62,7 @@ public class BackgroundTasksTest { nav.logIn().submitCredentials("admin", "admin"); BackgroundTasksPage page = nav.openBackgroundTasksPage(); + page.getTasks().shouldHave(sizeGreaterThan(0)); BackgroundTaskItem task = page.getTasksAsItems().get(0); task.openActions() .openScannerContext() @@ -75,6 +77,7 @@ public class BackgroundTasksTest { nav.logIn().submitCredentials("admin", "admin"); BackgroundTasksPage page = nav.openBackgroundTasksPage(); + page.getTasks().shouldHave(sizeGreaterThan(0)); BackgroundTaskItem task = page.getTasksAsItems().get(0); task.openActions() .openErrorStacktrace() -- 2.39.5