2020-06-02 21:21:44 +00:00
|
|
|
'use strict';
|
|
|
|
|
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 ) => {
|
2020-06-15 14:54:05 +00:00
|
|
|
SpecialMobileDiffPage.inserted_content_element.waitForDisplayed();
|
2019-04-11 20:24:16 +00:00
|
|
|
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 };
|