File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ from util import ExtensionTestCase
2+ from time import sleep
3+
4+ class OptionsTest (ExtensionTestCase ):
5+ def load_options (self ):
6+ self .driver .get (self .shim .options_url )
7+
8+ def test_options (self ):
9+ self .load_options ()
10+ self .assertEqual (self .driver .current_url , self .shim .options_url )
11+
12+ def test_show_counter (self ):
13+ selector = '#showCounter'
14+ self .load_options ()
15+ el = self .query_selector (selector )
16+ self .assertTrue (el .is_selected ())
17+ el .click ()
18+
19+ self .driver .refresh ()
20+
21+ self .load_options ()
22+ el = self .query_selector (selector )
23+ self .assertFalse (el .is_selected ())
24+ el .click ()
25+
26+ self .driver .refresh ()
27+ el = self .query_selector (selector )
28+ self .assertTrue (el .is_selected ())
You can’t perform that action at this time.
0 commit comments