From: Stas Vilchik Date: Thu, 25 Aug 2016 13:18:22 +0000 (+0200) Subject: make BackgroundTasksTest more stable X-Git-Tag: 6.1-RC1~299 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=adc7dcbe6986bfdb97de24c5b48ebd1f841a0a8e;p=sonarqube.git make BackgroundTasksTest more stable --- 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()