mediawiki-skins-MinervaNeue/tests/selenium/features/step_definitions/history_steps.js

23 lines
764 B
JavaScript
Raw Normal View History

'use strict';
const assert = require( 'assert' ),
{ ArticlePage, SpecialHistoryPage,
SpecialMobileDiffPage } = require( '../support/world.js' );
const iClickOnTheHistoryLinkInTheLastModifiedBar = () => {
ArticlePage.last_modified_bar_history_link_element.waitForDisplayed();
ArticlePage.last_modified_bar_history_link_element.click();
assert.strictEqual( SpecialHistoryPage.side_list_element.isDisplayed(), true );
};
const iOpenTheLatestDiff = () => {
SpecialHistoryPage.last_contribution_link_element.waitForExist();
SpecialHistoryPage.last_contribution_link_element.click();
assert.strictEqual( SpecialMobileDiffPage.user_info_element.isDisplayed(), true );
};
module.exports = {
iOpenTheLatestDiff,
iClickOnTheHistoryLinkInTheLastModifiedBar
};