mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
ec93d34370
This commit: * Removes the blue secondary action links found on User pages * Modifies ToolbarBuilder to add the contributions icon into the toolbar when on a user page/user talk page. * Turns on HISTORY_IN_PAGE_ACTIONS, TOOLBAR_SUBMENU, TALK_AT_TOP skin options for all users on user pages / user talk pages. * Languages icon is moved to overflow menu * Remove $userPageHelper param from UserNamespaceOverflowBuilder as it isn't using it and it is confusing to pass it in Bug: T232653 Bug: T235681 Depends-On: I2138472e68d8cab1c50cbb42807bd5b79e7e2749 Change-Id: I940e5cf7638ff38686eeca3d41554b8a22d35615
25 lines
835 B
JavaScript
25 lines
835 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.contributions_link_element.isVisible(), true );
|
|
};
|
|
const thereShouldBeALinkToMyTalkPage = () => {
|
|
assert.strictEqual( ArticlePage.talk_tab_element.isVisible(), true );
|
|
};
|
|
|
|
module.exports = { iVisitMyUserPage, iShouldBeOnMyUserPage,
|
|
thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage };
|