Skip to content

Commit 409774b

Browse files
authored
Merge pull request #6793 from denyshon/issue-2449
Remove Social & Mobile contribution area options
2 parents 5edbc7b + a2b8eb8 commit 409774b

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

kitsune/users/models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class ContributionAreas(models.TextChoices):
3030
KB = "kb-contributors", _lazy("KB Contributors")
3131
L10N = "l10n-contributors", _lazy("L10n Contributors")
3232
FORUM = "forum-contributors", _lazy("Forum Contributors")
33-
SOCIAL = "social-contributors", _lazy("Social media Contributors")
34-
MOBILE = "mobile-contributors", _lazy("Mobile support Contributors")
3533

3634
@classmethod
3735
def has_value(cls, value):

playwright_tests/pages/user_pages/my_profile_edit_contribution_areas_page.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ def __init__(self, page: Page):
1616
"input[value='l10n-contributors']")
1717
self.edit_contribution_areas_forum_contributors = page.locator(
1818
"input[value='forum-contributors']")
19-
self.edit_contribution_areas_social_media_contributors = page.locator(
20-
"input[value='social-contributors']")
21-
self.edit_contribution_areas_mobile_support_contributors = page.locator(
22-
"input[value='mobile-contributors']")
2319
self.edit_contribution_areas_checkbox_labels = page.locator(
2420
"//input[@type='checkbox']/parent::label")
2521
self.edit_contribution_areas_update_button = page.locator(
@@ -46,8 +42,6 @@ def get_contrib_areas_checkbox_labels(self) -> set[str]:
4642
return {
4743
item.lower()
4844
.replace(" ", "-")
49-
.replace("media", "")
50-
.replace("support", "")
5145
.replace("--", "-")[1:]
5246
for item in self._get_text_of_elements(self.edit_contribution_areas_checkbox_labels)
5347
}
@@ -88,20 +82,10 @@ def is_forum_contributors_checkbox_checked(self) -> bool:
8882
"""Check if the forum contributors checkbox is checked"""
8983
return self._is_checkbox_checked(self.edit_contribution_areas_forum_contributors)
9084

91-
def is_social_media_contributors_checkbox_checked(self) -> bool:
92-
"""Check if the social media contributors checkbox is checked"""
93-
return self._is_checkbox_checked(self.edit_contribution_areas_social_media_contributors)
94-
95-
def is_mobile_support_contributors_checkbox_checked(self) -> bool:
96-
"""Check if the mobile support contributors checkbox is checked"""
97-
return self._is_checkbox_checked(self.edit_contribution_areas_mobile_support_contributors)
98-
9985
def are_all_cont_pref_checked(self) -> bool:
10086
"""Check if all contribution areas checkboxes are checked"""
10187
return all([
10288
self.is_kb_contributors_checkbox_checked(),
10389
self.is_l10n_contributors_checkbox_checked(),
104-
self.is_forum_contributors_checkbox_checked(),
105-
self.is_social_media_contributors_checkbox_checked(),
106-
self.is_mobile_support_contributors_checkbox_checked(),
90+
self.is_forum_contributors_checkbox_checked()
10791
])

0 commit comments

Comments
 (0)