mediawiki-skins-MinervaNeue/tests/selenium/features/step_definitions/diff_steps.js
jdlrobson 0540abb30c QA: Two diff pages is enough
Use the more verbose SpecialMobileDiff page

Change-Id: I1e773b0a654d2b03601ae8ba37dc8bbc03910e7f
2019-04-26 07:46:04 +00:00

13 lines
509 B
JavaScript

const assert = require( 'assert' ),
{ SpecialMobileDiffPage } = require( '../support/world.js' );
const iShouldSeeAddedContent = ( text ) => {
SpecialMobileDiffPage.inserted_content_element.waitForVisible();
assert.strictEqual( SpecialMobileDiffPage.inserted_content_element.getText(), text );
};
const iShouldSeeRemovedContent = ( text ) => {
assert.strictEqual( SpecialMobileDiffPage.deleted_content_element.getText(), text );
};
module.exports = { iShouldSeeAddedContent, iShouldSeeRemovedContent };