blob: cd9b03fe0727b23994c335bca7b51252a3e820c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
'use strict';
const assert = require( 'assert' ),
LoginPage = require( 'wdio-mediawiki/LoginPage' ),
ViewListPage = require( '../pageobjects/viewlist.page' );
describe( 'Special:AbuseFilter', function () {
it( 'page should exist on installation', function () {
ViewListPage.open();
assert.equal( ViewListPage.title.getText(), 'Abuse filter management' );
} );
it( 'page should have the button for creating a new filter', function () {
LoginPage.loginAdmin();
ViewListPage.open();
assert.equal( ViewListPage.newFilterButton.getText(), 'Create a new filter' );
assert.notEqual(
ViewListPage.newFilterButton.getAttribute( 'href' ).indexOf( 'Special:AbuseFilter/new' ),
-1
);
} );
} );
|