@@ -22,6 +22,7 @@ class SeleniumBrowser(Plugin):
22
22
self.options.demo_mode -- the option to slow down Selenium (--demo_mode)
23
23
self.options.demo_sleep -- Selenium action delay in DemoMode (--demo_sleep)
24
24
self.options.highlights -- # of highlight animations shown (--highlights)
25
+ self.options.message_duration -- Messenger alert time (--message_duration)
25
26
self.options.ad_block -- the option to block some display ads (--ad_block)
26
27
self.options.verify_delay -- delay before MasterQA checks (--verify_delay)
27
28
self.options.timeout_multiplier -- increase defaults (--timeout_multiplier)
@@ -85,6 +86,12 @@ def options(self, parser, env):
85
86
dest = 'highlights' , default = None ,
86
87
help = """Setting this overrides the default number of
87
88
highlight animation loops to have per call.""" )
89
+ parser .add_option (
90
+ '--message_duration' , action = "store" ,
91
+ dest = 'message_duration' , default = None ,
92
+ help = """Setting this overrides the default time that
93
+ messenger notifications remain visible when reaching
94
+ assert statements during Demo Mode.""" )
88
95
parser .add_option (
89
96
'--ad_block' , action = "store_true" ,
90
97
dest = 'ad_block_on' ,
@@ -119,6 +126,7 @@ def beforeTest(self, test):
119
126
test .test .demo_mode = self .options .demo_mode
120
127
test .test .demo_sleep = self .options .demo_sleep
121
128
test .test .highlights = self .options .highlights
129
+ test .test .message_duration = self .options .message_duration
122
130
test .test .ad_block_on = self .options .ad_block_on
123
131
test .test .verify_delay = self .options .verify_delay # MasterQA
124
132
test .test .timeout_multiplier = self .options .timeout_multiplier
0 commit comments