mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 11:35:54 +00:00
6a0192bf37
*This commit also removes it from tests and references Bug: T233985 Change-Id: I0d7eb72a2663f1d1138afe09124a154ad0502498
25 lines
876 B
JavaScript
25 lines
876 B
JavaScript
const assert = require( 'assert' );
|
|
const { ArticlePage } = require( '../support/world.js' );
|
|
const { iAmOnPage } = require( './common_steps' );
|
|
const { theTextOfTheFirstHeadingShouldBe } = require( './editor_steps' );
|
|
|
|
const username = browser.options.username.replace( /_/g, ' ' );
|
|
|
|
const iVisitMyUserPage = () => {
|
|
iAmOnPage( `User:${username}` );
|
|
};
|
|
|
|
const iShouldBeOnMyUserPage = () => {
|
|
theTextOfTheFirstHeadingShouldBe( username );
|
|
};
|
|
|
|
const thereShouldBeALinkToMyContributions = () => {
|
|
assert.strictEqual( ArticlePage.user_links_element.element( '=Contributions' ).isVisible(), true );
|
|
};
|
|
const thereShouldBeALinkToMyTalkPage = () => {
|
|
assert.strictEqual( ArticlePage.user_links_element.element( '=Talk' ).isVisible(), true );
|
|
};
|
|
|
|
module.exports = { iVisitMyUserPage, iShouldBeOnMyUserPage,
|
|
thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage };
|