mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
selenium: Replace Node.js Assert library with WebdriverIO Expect library
Assertions from Expect library are more readable that assertions from Assert library. Bug: T325740 Change-Id: I62ccf128e21eb49cbdc97546c643887105bf2c64
This commit is contained in:
parent
3c4141423e
commit
97126ba46f
|
@ -1,8 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const assert = require( 'assert' ),
|
||||
Api = require( 'wdio-mediawiki/Api' ),
|
||||
MathPage = require( '../pageobjects/math.page' );
|
||||
const Api = require( 'wdio-mediawiki/Api' );
|
||||
const MathPage = require( '../pageobjects/math.page' );
|
||||
|
||||
describe( 'Math', () => {
|
||||
let bot;
|
||||
|
@ -22,7 +21,7 @@ describe( 'Math', () => {
|
|||
await MathPage.openTitle( pageName );
|
||||
|
||||
// check if the page displays the image
|
||||
assert( await MathPage.mathml.isExisting() );
|
||||
await expect( await MathPage.mathml ).toExist();
|
||||
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in a new issue