mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 22:25:27 +00:00
c8ce9608c0
Bug: T255447 Change-Id: I4cdde3070a6dc4e742ea37a78a17dfd556103dd6
23 lines
764 B
JavaScript
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
|
|
};
|