@@ -12,29 +12,29 @@ def test_jlcbsc001_simple_callback(dashjl):
12
12
dashjl .start_server (fp )
13
13
14
14
dashjl .wait_for_element_by_css_selector (
15
- "#input" , timeout = 4
15
+ "#input" , timeout = 10
16
16
)
17
17
18
18
dashjl .wait_for_text_to_equal (
19
- "#output" , "initial value" , timeout = 3
19
+ "#output" , "initial value" , timeout = 10
20
20
)
21
21
input_ = dashjl .find_element ("#input" )
22
22
dashjl .clear_input (input_ )
23
23
input_ .send_keys ("hello world" )
24
24
25
25
dashjl .wait_for_text_to_equal (
26
- "#output" , "hello world" , timeout = 3
26
+ "#output" , "hello world" , timeout = 10
27
27
)
28
28
29
29
def test_jlcbsc002_callbacks_generating_children (dashjl ):
30
30
fp = jl_test_file_path ("jlcbsc002_callbacks_generating_children.jl" )
31
31
dashjl .start_server (fp )
32
32
dashjl .wait_for_element_by_css_selector (
33
- "#input" , timeout = 3
33
+ "#input" , timeout = 10
34
34
)
35
35
36
36
dashjl .wait_for_text_to_equal (
37
- "#sub-output-1" , "sub input initial value" , timeout = 3
37
+ "#sub-output-1" , "sub input initial value" , timeout = 10
38
38
)
39
39
40
40
pad_input , pad_div = dashjl .dash_innerhtml_dom .select_one (
@@ -54,14 +54,14 @@ def test_jlcbsc002_callbacks_generating_children(dashjl):
54
54
dashjl .find_element ("#sub-input-1" ).send_keys ("deadbeef" )
55
55
56
56
dashjl .wait_for_text_to_equal (
57
- "#sub-output-1" , pad_input .attrs ["value" ] + "deadbeef" , timeout = 3
57
+ "#sub-output-1" , pad_input .attrs ["value" ] + "deadbeef" , timeout = 10
58
58
)
59
59
60
60
61
61
def test_jlcbsc003_callback_with_unloaded_async_component (dashjl ):
62
62
fp = jl_test_file_path ("jlcbsc003_callback_with_unloaded_async_component.jl" )
63
63
dashjl .start_server (fp )
64
- dashjl .wait_for_text_to_equal ("#output" , "Hello" , timeout = 3 )
64
+ dashjl .wait_for_text_to_equal ("#output" , "Hello" , timeout = 10 )
65
65
dashjl .find_element ("#btn" ).click ()
66
66
dashjl .wait_for_text_to_equal ("#output" , "Bye" )
67
67
@@ -81,10 +81,10 @@ def test_jlcbsc005_children_types(dashjl):
81
81
"a string\n and a div"
82
82
]
83
83
84
- dashjl .wait_for_text_to_equal ("#out" , "init" , timeout = 3 )
84
+ dashjl .wait_for_text_to_equal ("#out" , "init" , timeout = 10 )
85
85
for text in outputs :
86
86
dashjl .find_element ("#btn" ).click ()
87
- dashjl .wait_for_text_to_equal ("#out" , text , timeout = 3 )
87
+ dashjl .wait_for_text_to_equal ("#out" , text , timeout = 10 )
88
88
89
89
def test_jlcbsc006_multiple_outputs (dashjl ):
90
90
fp = jl_test_file_path ("jlcbsc006_multiple_outputs.jl" )
@@ -95,138 +95,138 @@ def test_jlcbsc006_multiple_outputs(dashjl):
95
95
)
96
96
97
97
dashjl .wait_for_text_to_equal (
98
- "#output1" , "initial value first" , timeout = 3
98
+ "#output1" , "initial value first" , timeout = 10
99
99
)
100
100
dashjl .wait_for_text_to_equal (
101
- "#output2" , "initial value second" , timeout = 3
101
+ "#output2" , "initial value second" , timeout = 10
102
102
)
103
103
input_ = dashjl .find_element ("#input" )
104
104
dashjl .clear_input (input_ )
105
105
input_ .send_keys ("hello world" )
106
106
107
107
dashjl .wait_for_text_to_equal (
108
- "#output1" , "hello world first" , timeout = 3
108
+ "#output1" , "hello world first" , timeout = 10
109
109
)
110
110
111
111
dashjl .wait_for_text_to_equal (
112
- "#output2" , "hello world second" , timeout = 3
112
+ "#output2" , "hello world second" , timeout = 10
113
113
)
114
114
115
115
def test_jlcbsc007_prevent_update (dashjl ):
116
116
fp = jl_test_file_path ("jlcbsc007_prevent_update.jl" )
117
117
dashjl .start_server (fp )
118
118
119
119
dashjl .wait_for_element_by_css_selector (
120
- "#input" , timeout = 4
120
+ "#input" , timeout = 10
121
121
)
122
122
dashjl .find_element ("#input" ).click ()
123
123
dashjl .find_elements ("div.VirtualizedSelectOption" )[0 ].click ()
124
124
125
125
dashjl .wait_for_text_to_equal (
126
- "#output" , "regular" , timeout = 3
126
+ "#output" , "regular" , timeout = 10
127
127
)
128
128
dashjl .wait_for_text_to_equal (
129
- "#regular_output" , "regular" , timeout = 3
129
+ "#regular_output" , "regular" , timeout = 10
130
130
)
131
131
132
132
dashjl .find_element ("#input" ).click ()
133
133
dashjl .find_elements ("div.VirtualizedSelectOption" )[1 ].click ()
134
134
135
135
dashjl .wait_for_text_to_equal (
136
- "#regular_output" , "prevent" , timeout = 3
136
+ "#regular_output" , "prevent" , timeout = 10
137
137
)
138
138
dashjl .wait_for_text_to_equal (
139
- "#output" , "regular" , timeout = 3
139
+ "#output" , "regular" , timeout = 10
140
140
)
141
141
142
142
dashjl .find_element ("#input" ).click ()
143
143
dashjl .find_elements ("div.VirtualizedSelectOption" )[2 ].click ()
144
144
145
145
dashjl .wait_for_text_to_equal (
146
- "#regular_output" , "no_update" , timeout = 3
146
+ "#regular_output" , "no_update" , timeout = 10
147
147
)
148
148
dashjl .wait_for_text_to_equal (
149
- "#output" , "regular" , timeout = 3
149
+ "#output" , "regular" , timeout = 10
150
150
)
151
151
152
152
def test_jlcbsc008_prevent_update (dashjl ):
153
153
fp = jl_test_file_path ("jlcbsc008_prevent_update_multiple.jl" )
154
154
dashjl .start_server (fp )
155
155
156
156
dashjl .wait_for_element_by_css_selector (
157
- "#input" , timeout = 4
157
+ "#input" , timeout = 10
158
158
)
159
159
dashjl .find_element ("#input" ).click ()
160
160
dashjl .find_elements ("div.VirtualizedSelectOption" )[0 ].click () #regular
161
161
162
162
dashjl .wait_for_text_to_equal (
163
- "#regular_output" , "regular" , timeout = 3
163
+ "#regular_output" , "regular" , timeout = 10
164
164
)
165
165
166
166
dashjl .wait_for_text_to_equal (
167
- "#output1" , "regular" , timeout = 3
167
+ "#output1" , "regular" , timeout = 10
168
168
)
169
169
dashjl .wait_for_text_to_equal (
170
- "#output2" , "regular" , timeout = 3
170
+ "#output2" , "regular" , timeout = 10
171
171
)
172
172
173
173
dashjl .find_element ("#input" ).click ()
174
174
dashjl .find_elements ("div.VirtualizedSelectOption" )[1 ].click () #PreventUpdate
175
175
176
176
dashjl .wait_for_text_to_equal (
177
- "#regular_output" , "prevent" , timeout = 3
177
+ "#regular_output" , "prevent" , timeout = 10
178
178
)
179
179
180
180
dashjl .wait_for_text_to_equal (
181
- "#output1" , "regular" , timeout = 2
181
+ "#output1" , "regular" , timeout = 10
182
182
)
183
183
dashjl .wait_for_text_to_equal (
184
- "#output2" , "regular" , timeout = 2
184
+ "#output2" , "regular" , timeout = 10
185
185
)
186
186
187
187
dashjl .find_element ("#input" ).click ()
188
188
dashjl .find_elements ("div.VirtualizedSelectOption" )[2 ].click () #no_update1
189
189
190
190
dashjl .wait_for_text_to_equal (
191
- "#regular_output" , "no_update1" , timeout = 2
191
+ "#regular_output" , "no_update1" , timeout = 10
192
192
)
193
193
194
194
dashjl .wait_for_text_to_equal (
195
- "#output1" , "regular" , timeout = 2
195
+ "#output1" , "regular" , timeout = 10
196
196
)
197
197
dashjl .wait_for_text_to_equal (
198
- "#output2" , "no_update1" , timeout = 2
198
+ "#output2" , "no_update1" , timeout = 10
199
199
)
200
200
201
201
dashjl .find_element ("#input" ).click ()
202
202
dashjl .find_elements ("div.VirtualizedSelectOption" )[3 ].click () #no_update2
203
203
204
204
dashjl .wait_for_text_to_equal (
205
- "#regular_output" , "no_update2" , timeout = 3
205
+ "#regular_output" , "no_update2" , timeout = 10
206
206
)
207
207
208
208
dashjl .wait_for_text_to_equal (
209
- "#output1" , "no_update2" , timeout = 2
209
+ "#output1" , "no_update2" , timeout = 10
210
210
)
211
211
dashjl .wait_for_text_to_equal (
212
- "#output2" , "no_update1" , timeout = 2
212
+ "#output2" , "no_update1" , timeout = 10
213
213
)
214
214
215
215
def test_jlcbsc009_single_element_array_output (dashjl ):
216
216
fp = jl_test_file_path ("jlcbsc009_single_element_array_output.jl" )
217
217
dashjl .start_server (fp )
218
218
219
219
dashjl .wait_for_element_by_css_selector (
220
- "#input" , timeout = 3
220
+ "#input" , timeout = 10
221
221
)
222
222
223
223
dashjl .wait_for_text_to_equal (
224
- "#output" , "initial value" , timeout = 2
224
+ "#output" , "initial value" , timeout = 10
225
225
)
226
226
input_ = dashjl .find_element ("#input" )
227
227
dashjl .clear_input (input_ )
228
228
input_ .send_keys ("hello world" )
229
229
230
230
dashjl .wait_for_text_to_equal (
231
- "#output" , "hello world" , timeout = 1
231
+ "#output" , "hello world" , timeout = 10
232
232
)
0 commit comments