selenium: Disable flaky wdio rollback tests that rely on pauses
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 14 Apr 2019 22:12:53 +0000 (23:12 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Sun, 14 Apr 2019 22:12:53 +0000 (23:12 +0100)
Wait for an actual state to be reached, whether a JavaScript
expression to become true, or a certain state in the DOM.

Using pauses is an anti-pattern and inherently unstable.

Bug: T219440
Change-Id: Ibb2bd335f12442ab8ec2973031454cb58733211d

tests/selenium/specs/rollback.js

index 648e52f..970fb9e 100644 (file)
@@ -48,7 +48,7 @@ describe( 'Rollback with confirmation', function () {
                assert.strictEqual( HistoryPage.rollbackConfirmableNo.getText(), 'Cancel' );
        } );
 
-       it( 'should offer a way to cancel rollbacks', function () {
+       it.skip( 'should offer a way to cancel rollbacks', function () {
                HistoryPage.rollback.click();
 
                browser.pause( 300 );
@@ -60,7 +60,7 @@ describe( 'Rollback with confirmation', function () {
                assert.strictEqual( HistoryPage.heading.getText(), 'Revision history of "' + name + '"' );
        } );
 
-       it( 'should perform rollbacks after confirming intention', function () {
+       it.skip( 'should perform rollbacks after confirming intention', function () {
                HistoryPage.rollback.click();
 
                browser.pause( 300 );