X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fselenium%2Fspecs%2Frollback.js;h=daf7112e634a375f2402e6fbf4bc5de43362a0d8;hp=9beabfc3ca1e2e643a9a7336c7803a1c5b993842;hb=dfec83932fd38a9086eb5a2e212889ad00f35b0e;hpb=8b22883a66bcc7d54be7acb9898defa545751f86 diff --git a/tests/selenium/specs/rollback.js b/tests/selenium/specs/rollback.js index 9beabfc3ca..daf7112e63 100644 --- a/tests/selenium/specs/rollback.js +++ b/tests/selenium/specs/rollback.js @@ -1,4 +1,5 @@ const assert = require( 'assert' ), + BlankPage = require( 'wdio-mediawiki/BlankPage' ), HistoryPage = require( '../pageobjects/history.page' ), UserLoginPage = require( 'wdio-mediawiki/LoginPage' ), Util = require( 'wdio-mediawiki/Util' ); @@ -10,7 +11,7 @@ describe( 'Rollback with confirmation', function () { before( function () { // disable VisualEditor welcome dialog browser.deleteCookie(); - UserLoginPage.open(); + BlankPage.open(); browser.localStorage( 'POST', { key: 've-beta-welcome-dialog', value: '1' } ); // Enable rollback confirmation for admin user @@ -31,7 +32,7 @@ describe( 'Rollback with confirmation', function () { HistoryPage.open( name ); } ); - it( 'should offer rollback options for admin users', function () { + it.skip( 'should offer rollback options for admin users', function () { assert.strictEqual( HistoryPage.rollback.getText(), 'rollback 1 edit' ); HistoryPage.rollback.click(); @@ -90,7 +91,7 @@ describe( 'Rollback without confirmation', function () { before( function () { // disable VisualEditor welcome dialog browser.deleteCookie(); - UserLoginPage.open(); + BlankPage.open(); browser.localStorage( 'POST', { key: 've-beta-welcome-dialog', value: '1' } ); // Disable rollback confirmation for admin user @@ -120,7 +121,7 @@ describe( 'Rollback without confirmation', function () { }, 5000, 'Expected rollback page to appear.' ); } ); - it( 'should perform rollback via GET request without asking the user to confirm', function () { + it.skip( 'should perform rollback via GET request without asking the user to confirm', function () { var rollbackActionUrl = HistoryPage.rollbackLink.getAttribute( 'href' ); browser.url( rollbackActionUrl );