@@ -52,16 +52,16 @@ def update_output(value):
52
52
53
53
self .startServer (app )
54
54
55
- output1 = self .wait_for_element_by_id ('output-1' )
56
- wait_for (lambda : output1 .text == 'initial value' )
55
+ self .wait_for_text_to_equal ('#output-1' , 'initial value' )
57
56
self .percy_snapshot (name = 'simple-callback-1' )
58
57
59
58
input1 = self .wait_for_element_by_id ('input' )
60
59
input1 .clear ()
60
+ time .sleep (1 )
61
61
62
62
input1 .send_keys ('hello world' )
63
63
64
- output1 = self .wait_for_text_to_equal ('#output-1' , 'hello world' )
64
+ self .wait_for_text_to_equal ('#output-1' , 'hello world' )
65
65
self .percy_snapshot (name = 'simple-callback-2' )
66
66
67
67
self .assertEqual (
@@ -105,15 +105,16 @@ def update_text(data):
105
105
return data
106
106
107
107
self .startServer (app )
108
- output1 = self .wait_for_text_to_equal ('#output-1' , 'initial value' )
108
+ self .wait_for_text_to_equal ('#output-1' , 'initial value' )
109
109
self .percy_snapshot (name = 'wildcard-callback-1' )
110
110
111
- input1 = self .wait_for_element_by_id ( ' input' )
111
+ input1 = self .wait_for_element_by_css_selector ( '# input' )
112
112
input1 .clear ()
113
+ time .sleep (1 )
113
114
114
115
input1 .send_keys ('hello world' )
115
116
116
- output1 = self .wait_for_text_to_equal ('#output-1' , 'hello world' )
117
+ self .wait_for_text_to_equal ('#output-1' , 'hello world' )
117
118
self .percy_snapshot (name = 'wildcard-callback-2' )
118
119
119
120
self .assertEqual (
@@ -157,6 +158,7 @@ def callback2(value):
157
158
158
159
input_ = self .wait_for_element_by_id ('input' )
159
160
input_ .clear ()
161
+ time .sleep (1 )
160
162
input_ .send_keys ('x' )
161
163
output1 = self .wait_for_element_by_id ('output1' )
162
164
output2 = self .wait_for_element_by_id ('output2' )
0 commit comments