selenium: Add API wait and other pauses in rollback test
authorTim Eulitz <tim.eulitz@wikimedia.de>
Mon, 8 Apr 2019 09:07:45 +0000 (11:07 +0200)
committerWMDE-Fisch <christoph.jauera@wikimedia.de>
Tue, 9 Apr 2019 10:18:26 +0000 (10:18 +0000)
Bug: T219440
Change-Id: Ifdc0ff72db7f6f176b8a7a0522235e91dfd2aa87

tests/selenium/specs/rollback.js

index 805b793..648e52f 100644 (file)
@@ -50,7 +50,9 @@ describe( 'Rollback with confirmation', function () {
 
        it( 'should offer a way to cancel rollbacks', function () {
                HistoryPage.rollback.click();
+
                browser.pause( 300 );
+
                HistoryPage.rollbackConfirmableNo.click();
 
                browser.pause( 500 );
@@ -60,6 +62,9 @@ describe( 'Rollback with confirmation', function () {
 
        it( 'should perform rollbacks after confirming intention', function () {
                HistoryPage.rollback.click();
+
+               browser.pause( 300 );
+
                HistoryPage.rollbackConfirmableYes.click();
 
                // waitUntil indirectly asserts that the content we are looking for is present