mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 11:35:54 +00:00
c8ce9608c0
Bug: T255447 Change-Id: I4cdde3070a6dc4e742ea37a78a17dfd556103dd6
27 lines
851 B
JavaScript
27 lines
851 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.config.mwUser.replace( /_/g, ' ' );
|
|
|
|
const iVisitMyUserPage = () => {
|
|
iAmOnPage( `User:${username}` );
|
|
};
|
|
|
|
const iShouldBeOnMyUserPage = () => {
|
|
theTextOfTheFirstHeadingShouldBe( username );
|
|
};
|
|
|
|
const thereShouldBeALinkToMyContributions = () => {
|
|
assert.strictEqual( ArticlePage.contributions_link_element.isDisplayed(), true );
|
|
};
|
|
const thereShouldBeALinkToMyTalkPage = () => {
|
|
assert.strictEqual( ArticlePage.talk_tab_element.isDisplayed(), true );
|
|
};
|
|
|
|
module.exports = { iVisitMyUserPage, iShouldBeOnMyUserPage,
|
|
thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage };
|