Merge "selenium: Remove "RunJobs" wait from specialrecentchanges test"
[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
6 describe( 'Special:RecentChanges', function () {
7 let content,
8 name;
9
10 beforeEach( function () {
11 browser.deleteAllCookies();
12 content = Util.getTestString();
13 name = Util.getTestString();
14 } );
15
16 it( 'shows page creation', function () {
17 browser.call( function () {
18 return Api.edit( name, content );
19 } );
20
21 RecentChangesPage.open();
22
23 assert.strictEqual( RecentChangesPage.titles[ 0 ].getText(), name );
24 } );
25
26 } );