Skip to content

Commit 5e60ae4

Browse files
gloomy-ghostHainish
authored andcommitted
wait for option page to load (EFForg#15624)
1 parent ad99756 commit 5e60ae4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/selenium/test_options.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from time import sleep
12
from util import ExtensionTestCase
23

34
class OptionsTest(ExtensionTestCase):
@@ -11,17 +12,19 @@ def test_options(self):
1112
def test_show_counter(self):
1213
selector = '#showCounter'
1314
self.load_options()
15+
sleep(1)
16+
1417
el = self.query_selector(selector)
1518
self.assertTrue(el.is_selected())
1619
el.click()
1720

1821
self.driver.refresh()
19-
20-
self.load_options()
22+
sleep(1)
2123
el = self.query_selector(selector)
2224
self.assertFalse(el.is_selected())
2325
el.click()
2426

2527
self.driver.refresh()
28+
sleep(1)
2629
el = self.query_selector(selector)
2730
self.assertTrue(el.is_selected())

0 commit comments

Comments
 (0)