]> source.dussan.org Git - sonarqube.git/commitdiff
Improve NotificationsPage reliability
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 14 Jun 2017 08:24:40 +0000 (10:24 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 14 Jun 2017 12:43:10 +0000 (14:43 +0200)
it/it-tests/src/test/java/pageobjects/NotificationsPage.java

index 553e6d8a5c345a45a2f5d1135029baa6722c324b..82f4b4d3f4aa03cc525f63c9e8b1e637cfc8b2f6 100644 (file)
@@ -20,6 +20,7 @@
 package pageobjects;
 
 import static com.codeborne.selenide.Condition.cssClass;
+import static com.codeborne.selenide.Condition.text;
 import static com.codeborne.selenide.Condition.visible;
 import static com.codeborne.selenide.Selenide.$;
 
@@ -28,6 +29,7 @@ public class NotificationsPage {
   private final String EMAIL = "EmailNotificationChannel";
 
   public NotificationsPage() {
+    $("#account-page").shouldHave(text("Overall notifications"));
   }
 
   public NotificationsPage shouldHaveGlobalNotification(String type) {