2018-04-10 21:35:50 +00:00
|
|
|
const assert = require( 'assert' ),
|
2019-04-11 20:24:16 +00:00
|
|
|
{ SpecialMobileDiffPage } = require( '../support/world.js' );
|
2018-04-10 21:35:50 +00:00
|
|
|
|
|
|
|
const iShouldSeeAddedContent = ( text ) => {
|
2019-04-11 20:24:16 +00:00
|
|
|
SpecialMobileDiffPage.inserted_content_element.waitForVisible();
|
|
|
|
assert.strictEqual( SpecialMobileDiffPage.inserted_content_element.getText(), text );
|
2018-04-10 21:35:50 +00:00
|
|
|
};
|
|
|
|
const iShouldSeeRemovedContent = ( text ) => {
|
2019-04-11 20:24:16 +00:00
|
|
|
assert.strictEqual( SpecialMobileDiffPage.deleted_content_element.getText(), text );
|
2018-04-10 21:35:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = { iShouldSeeAddedContent, iShouldSeeRemovedContent };
|