File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,15 @@ 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 ()
61
60
62
61
input1 .send_keys ('hello world' )
63
62
64
- output1 = self .wait_for_text_to_equal ('#output-1' , 'hello world' )
63
+ self .wait_for_text_to_equal ('#output-1' , 'hello world' )
65
64
self .percy_snapshot (name = 'simple-callback-2' )
66
65
67
66
self .assertEqual (
@@ -105,15 +104,15 @@ def update_text(data):
105
104
return data
106
105
107
106
self .startServer (app )
108
- output1 = self .wait_for_text_to_equal ('#output-1' , 'initial value' )
107
+ self .wait_for_text_to_equal ('#output-1' , 'initial value' )
109
108
self .percy_snapshot (name = 'wildcard-callback-1' )
110
109
111
- input1 = self .wait_for_element_by_id ( ' input' )
110
+ input1 = self .wait_for_element_by_css_selector ( '# input' )
112
111
input1 .clear ()
113
112
114
113
input1 .send_keys ('hello world' )
115
114
116
- output1 = self .wait_for_text_to_equal ('#output-1' , 'hello world' )
115
+ self .wait_for_text_to_equal ('#output-1' , 'hello world' )
117
116
self .percy_snapshot (name = 'wildcard-callback-2' )
118
117
119
118
self .assertEqual (
You can’t perform that action at this time.
0 commit comments