mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-19 03:55:55 +00:00
544b0e70c9
Bug: T219920 Change-Id: I9f651d73cae8d6494ffa585ac3cbd791686b926a
29 lines
1 KiB
JavaScript
29 lines
1 KiB
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 thereShouldBeALinkToMyUploads = () => {
|
|
assert.strictEqual( ArticlePage.user_links_element.element( '=Uploads' ).isVisible(), true );
|
|
};
|
|
|
|
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, thereShouldBeALinkToMyUploads,
|
|
thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage };
|