mediawiki-skins-MinervaNeue/tests/selenium/features/step_definitions/history_steps.js
Ed Sanders a32999e641 build: Update eslint-config-wikimedia to 0.16.0
Change-Id: Icabf6e065ed5685207731262db72faf848a0a04d
2020-06-04 08:39:32 -07:00

23 lines
758 B
JavaScript

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