mediawiki-skins-MinervaNeue/tests/selenium/features/step_definitions/diff_steps.js
Jan Drewniak 6bd240389e Adding "diff.feature" selenium test
Bug: T219920
Change-Id: I34b5301a274fe90a7a2db58a8bec2b9398d998b6
2019-04-10 23:15:37 +00:00

13 lines
457 B
JavaScript

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