2020-06-02 21:21:44 +00:00
|
|
|
'use strict';
|
|
|
|
|
2018-04-10 21:19:08 +00:00
|
|
|
const assert = require( 'assert' ),
|
2018-04-10 21:35:50 +00:00
|
|
|
{ ArticlePage, SpecialHistoryPage,
|
|
|
|
SpecialMobileDiffPage } = require( '../support/world.js' );
|
2018-04-10 21:19:08 +00:00
|
|
|
|
|
|
|
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 );
|
|
|
|
};
|
|
|
|
|
2018-04-10 21:35:50 +00:00
|
|
|
const iOpenTheLatestDiff = () => {
|
|
|
|
SpecialHistoryPage.last_contribution_link_element.waitForExist();
|
|
|
|
SpecialHistoryPage.last_contribution_link_element.click();
|
|
|
|
assert.strictEqual( SpecialMobileDiffPage.user_info_element.isVisible(), true );
|
|
|
|
};
|
|
|
|
|
2018-04-10 21:19:08 +00:00
|
|
|
module.exports = {
|
2018-04-10 21:35:50 +00:00
|
|
|
iOpenTheLatestDiff,
|
2018-04-10 21:19:08 +00:00
|
|
|
iClickOnTheHistoryLinkInTheLastModifiedBar
|
|
|
|
};
|