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-contributions": "Contributions",
"mobile-frontend-user-page-member-since": "{{GENDER:$2|Joined}} $1", "mobile-frontend-user-page-member-since": "{{GENDER:$2|Joined}} $1",
"mobile-frontend-user-page-talk": "Talk", "mobile-frontend-user-page-talk": "Talk",
"mobile-frontend-user-page-uploads": "Uploads",
"minerva-user-menu-button": "User menu", "minerva-user-menu-button": "User menu",
"minerva-page-actions-overflow": "Secondary page actions submenu", "minerva-page-actions-overflow": "Secondary page actions submenu",
"minerva-page-actions-info": "Page information", "minerva-page-actions-info": "Page information",
"minerva-page-actions-permalink": "Permanent link", "minerva-page-actions-permalink": "Permanent link",
"minerva-page-actions-backlinks": "What links here", "minerva-page-actions-backlinks": "What links here",
"minerva-page-actions-cite": "Cite page", "minerva-page-actions-cite": "Cite page",
"minerva-page-actions-uploads": "Uploads",
"minerva-page-actions-user-groups": "User groups", "minerva-page-actions-user-groups": "User groups",
"minerva-page-actions-logs": "Logs", "minerva-page-actions-logs": "Logs",
"minerva-page-actions-wikibase": "{{WBREPONAME}} item", "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-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-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-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-user-menu-button": "Text describing the user menu",
"minerva-page-actions-overflow": "Text describing the secondary page menu button's action", "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-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-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-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-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-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-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", "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(), 'Contributions', $pageUser )->getLocalURL(),
'contributionsPageTitle' => $this->msg( 'contributionsPageTitle' => $this->msg(
'mobile-frontend-user-page-contributions' )->escaped(), '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__ ); $templateParser = new TemplateParser( __DIR__ );
$tpl->set( 'postheadinghtml', $tpl->set( 'postheadinghtml',

View file

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

View file

@ -18,7 +18,3 @@ end
Then(/^there should be a link to my talk page$/) do Then(/^there should be a link to my talk page$/) do
expect(on(UserPage).talk_link_element).to be_visible expect(on(UserPage).talk_link_element).to be_visible
end 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| a(:contributions_link) do |page|
page.user_links_element.element.a(href: /Special:Contributions\//) page.user_links_element.element.a(href: /Special:Contributions\//)
end end
a(:uploads_link) do |page|
page.user_links_element.element.a(href: /Special:Uploads\//)
end
end end

View file

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

View file

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

View file

@ -10,4 +10,3 @@ Feature: User:<username>
Then I should be on my user page 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 talk page
And there should be a link to my contributions 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' ), const { iAmLoggedIntoTheMobileWebsite } = require( '../features/step_definitions/common_steps' ),
{ iVisitMyUserPage, iShouldBeOnMyUserPage, thereShouldBeALinkToMyUploads, { iVisitMyUserPage, iShouldBeOnMyUserPage,
thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage
} = require( '../features/step_definitions/user_page_steps' ); } = require( '../features/step_definitions/user_page_steps' );
@ -16,6 +16,5 @@ describe( 'User:<username>', () => {
iShouldBeOnMyUserPage(); iShouldBeOnMyUserPage();
thereShouldBeALinkToMyTalkPage(); thereShouldBeALinkToMyTalkPage();
thereShouldBeALinkToMyContributions(); thereShouldBeALinkToMyContributions();
thereShouldBeALinkToMyUploads();
} ); } );
} ); } );