2019-10-01 01:36:15 +00:00
|
|
|
const assert = require( 'assert' );
|
|
|
|
|
const Api = require( 'wdio-mediawiki/Api' );
|
|
|
|
|
const RecentChangesPage = require( '../pageobjects/recentchanges.page' );
|
|
|
|
|
const Util = require( 'wdio-mediawiki/Util' );
|
2018-06-12 11:01:25 +00:00
|
|
|
|
|
|
|
|
describe( 'Special:RecentChanges', function () {
|
2019-10-01 01:36:15 +00:00
|
|
|
let content, name;
|
2018-06-12 11:01:25 +00:00
|
|
|
|
|
|
|
|
beforeEach( function () {
|
2019-09-27 03:08:00 +00:00
|
|
|
browser.deleteAllCookies();
|
2018-06-20 11:06:45 +00:00
|
|
|
content = Util.getTestString();
|
|
|
|
|
name = Util.getTestString();
|
2018-06-12 11:01:25 +00:00
|
|
|
} );
|
|
|
|
|
|
2018-09-11 14:57:48 +00:00
|
|
|
it( 'shows page creation', function () {
|
|
|
|
|
browser.call( function () {
|
|
|
|
|
return Api.edit( name, content );
|
|
|
|
|
} );
|
2018-06-12 11:01:25 +00:00
|
|
|
|
|
|
|
|
RecentChangesPage.open();
|
|
|
|
|
|
2018-06-19 13:31:07 +00:00
|
|
|
assert.strictEqual( RecentChangesPage.titles[ 0 ].getText(), name );
|
2018-06-12 11:01:25 +00:00
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
} );
|