1 const assert
= require( 'assert' ),
2 Api
= require( 'wdio-mediawiki/Api' ),
3 RecentChangesPage
= require( '../pageobjects/recentchanges.page' ),
4 Util
= require( 'wdio-mediawiki/Util' ),
5 RunJobs
= require( 'wdio-mediawiki/RunJobs' );
7 describe( 'Special:RecentChanges', function () {
11 beforeEach( function () {
12 browser
.deleteCookie();
13 content
= Util
.getTestString();
14 name
= Util
.getTestString();
17 it( 'shows page creation', function () {
18 browser
.call( function () {
19 return Api
.edit( name
, content
);
23 RecentChangesPage
.open();
25 assert
.strictEqual( RecentChangesPage
.titles
[ 0 ].getText(), name
);