assert.equal is deprecated
Change-Id: I2f83d596db2ad475de5e005baa849782261d433e
EditPage.edit( name, content );
// check
EditPage.edit( name, content );
// check
- assert.equal( EditPage.heading.getText(), name );
- assert.equal( EditPage.displayedContent.getText(), content );
+ assert.strictEqual( EditPage.heading.getText(), name );
+ assert.strictEqual( EditPage.displayedContent.getText(), content );
} );
it( 'should be re-creatable', function () {
} );
it( 'should be re-creatable', function () {
EditPage.edit( name, content );
// check
EditPage.edit( name, content );
// check
- assert.equal( EditPage.heading.getText(), name );
- assert.equal( EditPage.displayedContent.getText(), content );
+ assert.strictEqual( EditPage.heading.getText(), name );
+ assert.strictEqual( EditPage.displayedContent.getText(), content );
} );
it( 'should be editable', function () {
} );
it( 'should be editable', function () {
EditPage.edit( name, content );
// check
EditPage.edit( name, content );
// check
- assert.equal( EditPage.heading.getText(), name );
- assert.equal( EditPage.displayedContent.getText(), content );
+ assert.strictEqual( EditPage.heading.getText(), name );
+ assert.strictEqual( EditPage.displayedContent.getText(), content );
} );
it( 'should have history', function () {
} );
it( 'should have history', function () {
// check
HistoryPage.open( name );
// check
HistoryPage.open( name );
- assert.equal( HistoryPage.comment.getText(), `(Created page with "${content}")` );
+ assert.strictEqual( HistoryPage.comment.getText(), `(Created page with "${content}")` );
} );
it( 'should be deletable', function () {
} );
it( 'should be deletable', function () {
DeletePage.delete( name, content + '-deletereason' );
// check
DeletePage.delete( name, content + '-deletereason' );
// check
DeletePage.displayedContent.getText(),
'"' + name + '" has been deleted. See deletion log for a record of recent deletions.\nReturn to Main Page.'
);
DeletePage.displayedContent.getText(),
'"' + name + '" has been deleted. See deletion log for a record of recent deletions.\nReturn to Main Page.'
);
RestorePage.restore( name, content + '-restorereason' );
// check
RestorePage.restore( name, content + '-restorereason' );
// check
- assert.equal( RestorePage.displayedContent.getText(), name + ' has been restored\nConsult the deletion log for a record of recent deletions and restorations.' );
+ assert.strictEqual( RestorePage.displayedContent.getText(), name + ' has been restored\nConsult the deletion log for a record of recent deletions and restorations.' );
CreateAccountPage.createAccount( username, password );
// check
CreateAccountPage.createAccount( username, password );
// check
- assert.equal( CreateAccountPage.heading.getText(), `Welcome, ${username}!` );
+ assert.strictEqual( CreateAccountPage.heading.getText(), `Welcome, ${username}!` );
} );
it( 'should be able to log in', function () {
} );
it( 'should be able to log in', function () {
UserLoginPage.login( username, password );
// check
UserLoginPage.login( username, password );
// check
- assert.equal( UserLoginPage.userPage.getText(), username );
+ assert.strictEqual( UserLoginPage.userPage.getText(), username );
} );
it( 'should be able to change preferences', function () {
} );
it( 'should be able to change preferences', function () {
PreferencesPage.changeRealName( realName );
// check
PreferencesPage.changeRealName( realName );
// check
- assert.equal( PreferencesPage.realName.getValue(), realName );
+ assert.strictEqual( PreferencesPage.realName.getValue(), realName );
BlankPage.open();
// check
BlankPage.open();
// check
- assert.equal( BlankPage.heading.getText(), 'Blank page' );
+ assert.strictEqual( BlankPage.heading.getText(), 'Blank page' );