Merge "Selenium: replace UserLoginPage with BlankPage where possible"
[lhc/web/wiklou.git] / tests / selenium / specs / specialrecentchanges.js
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' );
6
7 describe( 'Special:RecentChanges', function () {
8 let content,
9 name;
10
11 beforeEach( function () {
12 browser.deleteCookie();
13 content = Util.getTestString();
14 name = Util.getTestString();
15 } );
16
17 it( 'shows page creation', function () {
18 browser.call( function () {
19 return Api.edit( name, content );
20 } );
21 RunJobs.run();
22
23 RecentChangesPage.open();
24
25 assert.strictEqual( RecentChangesPage.titles[ 0 ].getText(), name );
26 } );
27
28 } );