remove links to "Manage Developer Profile" (bug 742902)

This commit is contained in:
Chris Van 2012-08-20 09:08:47 -07:00
Родитель 8e504b2b38
Коммит 98239cbbd2
5 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -36,7 +36,6 @@
<a href="#" class="more-actions">{{ _('More') }}</a>
<div class="more-actions-popup popup hidden">
{% set manage_urls = [
(addon.get_dev_url('profile'), _('Manage Developer Profile')),
(addon.get_dev_url('versions'), _('Manage Status')),
] %}
{% if addon.is_premium() and waffle.switch('allow-refund') %}

Просмотреть файл

@ -42,7 +42,6 @@
<div class="more-actions-popup popup hidden">
{% set manage_urls = [
(addon.get_dev_url('owner'), _('Manage Authors & License')),
(addon.get_dev_url('profile'), _('Manage Developer Profile')),
(addon.get_dev_url('payments'), _('Manage Payments')),
(addon.get_dev_url('versions'), _('Manage Status & Versions')),
] %}

Просмотреть файл

@ -46,7 +46,6 @@
<a href="#" class="more-actions">{{ _('More') }}</a>
<div class="more-actions-popup popup hidden">
{% set manage_urls = [
(addon.get_dev_url('profile'), _('Manage Developer Profile')),
(addon.get_dev_url('versions'), _('Manage Status')),
] %}
{% if waffle.switch('allow-refund') and addon.needs_paypal() and

Просмотреть файл

@ -1,7 +1,6 @@
{% set urls = [
(addon.get_dev_url(), _('Edit Listing')),
(addon.get_dev_url('owner'), _('Manage Authors')),
(addon.get_dev_url('profile'), _('Manage Developer Profile')),
(addon.get_dev_url('payments'), _('Manage Payments')),
] %}
{# TODO(cvan): Remove this when we fix/remove all the add-ons tests. #}

Просмотреть файл

@ -9,6 +9,7 @@ from django.conf import settings
from django.core import mail
from django.core.files.storage import default_storage as storage
from nose import SkipTest
import mock
import waffle
from dateutil.parser import parse as parse_dt
@ -146,7 +147,6 @@ class TestAppDashboard(AppHubTest):
assert not item.find('p.incomplete'), (
'Unexpected message about incomplete add-on')
expected = [
('Manage Developer Profile', app.get_dev_url('profile')),
('Manage Status', app.get_dev_url('versions')),
]
amo.tests.check_links(expected, doc('.more-actions-popup a'))
@ -187,11 +187,10 @@ class TestAppDashboard(AppHubTest):
self.make_mine()
doc = pq(self.client.get(self.url).content)
expected = [
('Manage Developer Profile', app.get_dev_url('profile')),
('Manage Status', app.get_dev_url('versions')),
('Manage In-App Payments', app.get_dev_url('in_app_config')),
('Manage PayPal', app.get_dev_url('paypal_setup')),
('Manage Refunds', app.get_dev_url('refunds')),
('Manage Status', app.get_dev_url('versions')),
]
amo.tests.check_links(expected, doc('.more-actions-popup a'))
@ -1117,6 +1116,8 @@ class TestProfileStatusBar(TestProfileBase):
self.remove_url = self.webapp.get_dev_url('profile.remove')
def test_nav_link(self):
# Removed links to "Manage Developer Profile" in bug 742902.
raise SkipTest
r = self.client.get(self.url)
eq_(pq(r.content)('#edit-addon-nav li.selected a').attr('href'),
self.url)