mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 11:13:34 +00:00
a32999e641
Change-Id: Icabf6e065ed5685207731262db72faf848a0a04d
23 lines
758 B
JavaScript
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
|
|
};
|