@@ -238,7 +238,9 @@ def get_output():
238
238
_input .send_keys ("Extend" )
239
239
dash_duo .find_element ("#extend-btn" ).click ()
240
240
241
- until (lambda : get_output ()["array" ] == ["Prepend" , "initial" , "Append" , "Extend" ], 2 )
241
+ until (
242
+ lambda : get_output ()["array" ] == ["Prepend" , "initial" , "Append" , "Extend" ], 2
243
+ )
242
244
243
245
undef = object ()
244
246
until (lambda : get_output ().get ("merge" , undef ) is undef , 2 )
@@ -259,51 +261,71 @@ def get_output():
259
261
_input .send_keys ("Inserted" )
260
262
dash_duo .find_element ("#insert-btn" ).click ()
261
263
262
- until (lambda : get_output ().get ("array" ) == [
263
- "Prepend" ,
264
- "Inserted" ,
265
- "initial" ,
266
- "Append" ,
267
- "Extend" ,
268
- ], 2 )
264
+ until (
265
+ lambda : get_output ().get ("array" )
266
+ == [
267
+ "Prepend" ,
268
+ "Inserted" ,
269
+ "initial" ,
270
+ "Append" ,
271
+ "Extend" ,
272
+ ],
273
+ 2 ,
274
+ )
269
275
270
276
_input .send_keys (" with negative index" )
271
277
_input = dash_duo .find_element ("#insert-index" )
272
278
_input .send_keys (Keys .BACKSPACE )
273
279
_input .send_keys ("-1" )
274
280
dash_duo .find_element ("#insert-btn" ).click ()
275
281
276
- until (lambda : get_output ().get ("array" ) == [
277
- "Prepend" ,
278
- "Inserted" ,
279
- "initial" ,
280
- "Append" ,
281
- "Inserted with negative index" ,
282
- "Extend" ,
283
- ], 2 )
282
+ until (
283
+ lambda : get_output ().get ("array" )
284
+ == [
285
+ "Prepend" ,
286
+ "Inserted" ,
287
+ "initial" ,
288
+ "Append" ,
289
+ "Inserted with negative index" ,
290
+ "Extend" ,
291
+ ],
292
+ 2 ,
293
+ )
284
294
285
295
dash_duo .find_element ("#delete-index" ).click ()
286
- until (lambda : get_output ().get ("array" ) == [
287
- "Prepend" ,
288
- "initial" ,
289
- "Append" ,
290
- "Extend" ,
291
- ], 2 )
296
+ until (
297
+ lambda : get_output ().get ("array" )
298
+ == [
299
+ "Prepend" ,
300
+ "initial" ,
301
+ "Append" ,
302
+ "Extend" ,
303
+ ],
304
+ 2 ,
305
+ )
292
306
293
307
dash_duo .find_element ("#reverse-btn" ).click ()
294
- until (lambda : get_output ().get ("array" ) == [
295
- "Extend" ,
296
- "Append" ,
297
- "initial" ,
298
- "Prepend" ,
299
- ], 2 )
308
+ until (
309
+ lambda : get_output ().get ("array" )
310
+ == [
311
+ "Extend" ,
312
+ "Append" ,
313
+ "initial" ,
314
+ "Prepend" ,
315
+ ],
316
+ 2 ,
317
+ )
300
318
301
319
dash_duo .find_element ("#remove-btn" ).click ()
302
- until (lambda : get_output ().get ("array" ) == [
303
- "Extend" ,
304
- "Append" ,
305
- "Prepend" ,
306
- ], 2 )
320
+ until (
321
+ lambda : get_output ().get ("array" )
322
+ == [
323
+ "Extend" ,
324
+ "Append" ,
325
+ "Prepend" ,
326
+ ],
327
+ 2 ,
328
+ )
307
329
308
330
dash_duo .find_element ("#clear-btn" ).click ()
309
331
until (lambda : get_output ()["array" ] == [], 2 )
0 commit comments