mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 14:56:41 +00:00
Bug 4339: Defined a specific wait timeout for notifications that
automatically disappear after 10s. It's useless to wait 120s here.
This commit is contained in:
1 parent
1831804f0c
commit
1853ecf929
1 file changed
+2
-1
+2
-1
@@ -59,6 +59,7 @@ public class PageObject {
|
||||
private static final Logger logger = Logger.getLogger(PageObject.class.getName());
|
||||
|
||||
public static final int DEFAULT_WAIT_TIMEOUT_SECONDS = 120;
|
||||
public static final int DEFAULT_NOTIFICATION_TIMEOUT_SECONDS = 12;
|
||||
|
||||
public static final int DEFAULT_POLLING_INTERVAL = 1;
|
||||
|
||||
@@ -605,7 +606,7 @@ public class PageObject {
|
||||
* Waits for an notification to appear and dismisses the notification by clicking on it. If no notification shows up, an Exception is thrown.
|
||||
*/
|
||||
protected void waitForNotificationAndDismiss() {
|
||||
waitForNotificationAndDismiss(DEFAULT_WAIT_TIMEOUT_SECONDS);
|
||||
waitForNotificationAndDismiss(DEFAULT_NOTIFICATION_TIMEOUT_SECONDS, null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user