mediawiki-skins-MinervaNeue/tests/selenium/features/step_definitions/history_steps.js
Edward Tadros c8ce9608c0 Selenium: Update WebdriverIO to version 5
Bug: T255447
Change-Id: I4cdde3070a6dc4e742ea37a78a17dfd556103dd6
2020-06-30 08:27:05 -07:00

23 lines
764 B
JavaScript

'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
};