const assert = require( 'assert' ),
+ BlankPage = require( 'wdio-mediawiki/BlankPage' ),
HistoryPage = require( '../pageobjects/history.page' ),
UserLoginPage = require( 'wdio-mediawiki/LoginPage' ),
Util = require( 'wdio-mediawiki/Util' );
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
it.skip( 'should offer rollback options for admin users', function () {
assert.strictEqual( HistoryPage.rollback.getText(), 'rollback 1 edit' );
- HistoryPage.rollback.click();
+ HistoryPage.rollbackLink.click();
assert.strictEqual( HistoryPage.rollbackConfirmable.getText(), 'Please confirm:' );
assert.strictEqual( HistoryPage.rollbackConfirmableYes.getText(), 'Rollback' );
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