Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 6b71fab

Browse files
authored
Amend test for stable rules (#17952)
* Amend test for stable rules
1 parent 00df747 commit 6b71fab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/selenium/test_popup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44

55
class TestPopup(ExtensionTestCase):
66
def test_rule_shown(self):
7-
raise unittest.SkipTest('broken since #17010')
87
url = 'http://freerangekitten.com'
98
with self.load_popup_for(url):
10-
el = self.query_selector('#StableRules > div > label > span')
11-
self.assertTrue(el.text.lower() in url)
9+
#Open Rule Management section
10+
see_more_prompt = self.query_selector('#RuleManagement__see_more--prompt')
11+
see_more_prompt.click()
12+
13+
#Check to see if stable rule is checked
14+
checkbox_el = self.driver.find_element_by_id('stable_ruleset_1')
15+
self.assertTrue(checkbox_el.is_selected())
1216

1317
def test_disable_enable(self):
1418
selector = '#onoffswitch__label'

0 commit comments

Comments
 (0)