Merge "Remove "uploads" link from userpages"

This commit is contained in:
jenkins-bot 2019-10-02 00:00:18 +00:00 committed by Gerrit Code Review
commit 6f4a7116dd
10 changed files with 4 additions and 29 deletions

View file

@ -46,14 +46,12 @@
"mobile-frontend-user-page-contributions": "Contributions",
"mobile-frontend-user-page-member-since": "{{GENDER:$2|Joined}} $1",
"mobile-frontend-user-page-talk": "Talk",
"mobile-frontend-user-page-uploads": "Uploads",
"minerva-user-menu-button": "User menu",
"minerva-page-actions-overflow": "Secondary page actions submenu",
"minerva-page-actions-info": "Page information",
"minerva-page-actions-permalink": "Permanent link",
"minerva-page-actions-backlinks": "What links here",
"minerva-page-actions-cite": "Cite page",
"minerva-page-actions-uploads": "Uploads",
"minerva-page-actions-user-groups": "User groups",
"minerva-page-actions-logs": "Logs",
"minerva-page-actions-wikibase": "{{WBREPONAME}} item",

View file

@ -56,14 +56,12 @@
"mobile-frontend-user-page-contributions": "Text of the link to the user's contributions page\n{{Identical|Contribution}}",
"mobile-frontend-user-page-member-since": "Message below the heading. $1 is the user registration date. $2 is the gender associated with the user account.",
"mobile-frontend-user-page-talk": "Text of the link to the user's talk page\n{{Identical|Talk}}",
"mobile-frontend-user-page-uploads": "Text of the link to the user's uploads page\n{{Identical|Upload}}",
"minerva-user-menu-button": "Text describing the user menu",
"minerva-page-actions-overflow": "Text describing the secondary page menu button's action",
"minerva-page-actions-info": "In the secondary page menu, the page information button label",
"minerva-page-actions-permalink": "In the secondary page menu, the permanent link button label\n\nSee also:\n* {{msg-mw|permalink}}",
"minerva-page-actions-backlinks": "In the secondary page menu, the 'what links here' incoming links button label\n\nSee also:\n* {{msg-mw|whatlinkshere}}",
"minerva-page-actions-cite": "In the secondary page menu, the cite this page button label\n\nSee also:\n* {{msg-mw|citethispage-link}}",
"minerva-page-actions-uploads": "In the secondary page menu for user pages, the user uploads button label",
"minerva-page-actions-user-groups": "In the secondary page menu for user pages, the user groups button label",
"minerva-page-actions-logs": "In the secondary page menu for user pages, the user logs button label",
"minerva-page-actions-wikibase": "In the secondary page menu, the wikibase item button label",

View file

@ -604,10 +604,6 @@ class SkinMinerva extends SkinTemplate {
'Contributions', $pageUser )->getLocalURL(),
'contributionsPageTitle' => $this->msg(
'mobile-frontend-user-page-contributions' )->escaped(),
'uploadsPageLink' => SpecialPage::getTitleFor(
'Uploads', $pageUser )->getLocalURL(),
'uploadsPageTitle' => $this->msg(
'mobile-frontend-user-page-uploads' )->escaped(),
];
$templateParser = new TemplateParser( __DIR__ );
$tpl->set( 'postheadinghtml',

View file

@ -8,7 +8,4 @@
<li>
<a href="{{contributionsPageLink}}">{{contributionsPageTitle}}</a>
</li>
<li>
<a href="{{uploadsPageLink}}">{{uploadsPageTitle}}</a>
</li>
</ul>

View file

@ -18,7 +18,3 @@ end
Then(/^there should be a link to my talk page$/) do
expect(on(UserPage).talk_link_element).to be_visible
end
Then(/^there should be a link to my uploads$/) do
expect(on(UserPage).uploads_link_element).to be_visible
end

View file

@ -11,7 +11,4 @@ class UserPage < ArticlePage
a(:contributions_link) do |page|
page.user_links_element.element.a(href: /Special:Contributions\//)
end
a(:uploads_link) do |page|
page.user_links_element.element.a(href: /Special:Uploads\//)
end
end

View file

@ -28,8 +28,8 @@ const { defineSupportCode } = require( 'cucumber' ),
{
theWatchstarShouldNotBeSelected, theWatchstarShouldBeSelected,
iClickTheWatchstar, iClickTheUnwatchStar } = require( './watch_steps' ),
{ iVisitMyUserPage, iShouldBeOnMyUserPage, thereShouldBeALinkToMyUploads,
thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage
{ iVisitMyUserPage, iShouldBeOnMyUserPage, thereShouldBeALinkToMyContributions,
thereShouldBeALinkToMyTalkPage
} = require( './user_page_steps' ),
{
iClickTheSearchIcon,
@ -130,7 +130,6 @@ defineSupportCode( function ( { Then, When, Given } ) {
// user page
Given( /^I visit my user page$/, iVisitMyUserPage );
When( /^I should be on my user page$/, iShouldBeOnMyUserPage );
Then( /^there should be a link to my uploads$/, thereShouldBeALinkToMyUploads );
Then( /^there should be a link to my contributions$/, thereShouldBeALinkToMyContributions );
Then( /^there should be a link to my talk page$/, thereShouldBeALinkToMyTalkPage );

View file

@ -13,10 +13,6 @@ 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 );
};
@ -24,5 +20,5 @@ const thereShouldBeALinkToMyTalkPage = () => {
assert.strictEqual( ArticlePage.user_links_element.element( '=Talk' ).isVisible(), true );
};
module.exports = { iVisitMyUserPage, iShouldBeOnMyUserPage, thereShouldBeALinkToMyUploads,
module.exports = { iVisitMyUserPage, iShouldBeOnMyUserPage,
thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage };

View file

@ -10,4 +10,3 @@ Feature: User:<username>
Then I should be on my user page
And there should be a link to my talk page
And there should be a link to my contributions
And there should be a link to my uploads

View file

@ -1,5 +1,5 @@
const { iAmLoggedIntoTheMobileWebsite } = require( '../features/step_definitions/common_steps' ),
{ iVisitMyUserPage, iShouldBeOnMyUserPage, thereShouldBeALinkToMyUploads,
{ iVisitMyUserPage, iShouldBeOnMyUserPage,
thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage
} = require( '../features/step_definitions/user_page_steps' );
@ -16,6 +16,5 @@ describe( 'User:<username>', () => {
iShouldBeOnMyUserPage();
thereShouldBeALinkToMyTalkPage();
thereShouldBeALinkToMyContributions();
thereShouldBeALinkToMyUploads();
} );
} );