From: Tim Eulitz Date: Mon, 8 Apr 2019 09:07:45 +0000 (+0200) Subject: selenium: Add API wait and other pauses in rollback test X-Git-Tag: 1.34.0-rc.0~2087^2 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=684e544f1aa2e1cc75eb415f4f36fe552d356f61;p=lhc%2Fweb%2Fwiklou.git selenium: Add API wait and other pauses in rollback test Bug: T219440 Change-Id: Ifdc0ff72db7f6f176b8a7a0522235e91dfd2aa87 --- diff --git a/tests/selenium/specs/rollback.js b/tests/selenium/specs/rollback.js index 805b793098..648e52f600 100644 --- a/tests/selenium/specs/rollback.js +++ b/tests/selenium/specs/rollback.js @@ -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