@@ -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