mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
a32999e641
Change-Id: Icabf6e065ed5685207731262db72faf848a0a04d
27 lines
850 B
JavaScript
27 lines
850 B
JavaScript
'use strict';
|
|
|
|
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.contributions_link_element.isVisible(), true );
|
|
};
|
|
const thereShouldBeALinkToMyTalkPage = () => {
|
|
assert.strictEqual( ArticlePage.talk_tab_element.isVisible(), true );
|
|
};
|
|
|
|
module.exports = { iVisitMyUserPage, iShouldBeOnMyUserPage,
|
|
thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage };
|