File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -119,22 +119,22 @@ async def on_click(event):
119119 inner = driver .find_element_by_id ("inner" )
120120 count = driver .find_element_by_id ("count-view" )
121121
122- assert constructor_call_count .current == 1
122+ driver_wait . until ( lambda d : constructor_call_count .current == 1 )
123123 assert count .get_attribute ("innerHTML" ) == "0"
124124
125125 inner .click ()
126126
127- assert constructor_call_count .current == 1
127+ driver_wait . until ( lambda d : constructor_call_count .current == 1 )
128128 assert count .get_attribute ("innerHTML" ) == "1"
129129
130130 outer .click ()
131131
132- assert constructor_call_count .current == 2
132+ driver_wait . until ( lambda d : constructor_call_count .current == 2 )
133133 assert count .get_attribute ("innerHTML" ) == "0"
134134
135135 inner .click ()
136136
137- assert constructor_call_count .current == 2
137+ driver_wait . until ( lambda d : constructor_call_count .current == 2 )
138138 assert count .get_attribute ("innerHTML" ) == "1"
139139
140140
You can’t perform that action at this time.
0 commit comments