mediawiki-skins-MinervaNeue/tests/selenium/features/step_definitions/history_steps.js
Jan Drewniak 26e413e04d Adding initial webdriver.io test
Porting first selenium test from Ruby to Node.js using the
mocha framework. Starting with `category.feature` test.

Tests are placed in a new `tests/selenium` folder with their
own eslint config.

Bug: T190710
Change-Id: Iad954405a5ae0608fd5dc90dd5dfa434b3781037
2019-04-08 16:05:22 -07:00

13 lines
446 B
JavaScript

const assert = require( 'assert' ),
{ ArticlePage, SpecialHistoryPage } = require( '../support/world' );
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 );
};
module.exports = {
iClickOnTheHistoryLinkInTheLastModifiedBar
};