mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 03:08:12 +00:00
6bd240389e
Bug: T219920 Change-Id: I34b5301a274fe90a7a2db58a8bec2b9398d998b6
21 lines
743 B
JavaScript
21 lines
743 B
JavaScript
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
|
|
};
|