@@ -28,23 +28,32 @@ def test_upca001_upload_children_gallery(dash_dcc):
28
28
"textAlign" : "center" ,
29
29
},
30
30
),
31
- dcc .Upload ("upload" , disabled = True , className_disabled = "upload-disabled" , id = "upload" ),
32
- dcc .Upload ("upload" , disabled = True , id = "upload-no-className" )
31
+ dcc .Upload (
32
+ "upload" ,
33
+ disabled = True ,
34
+ className_disabled = "upload-disabled" ,
35
+ id = "upload" ,
36
+ ),
37
+ dcc .Upload ("upload" , disabled = True , id = "upload-no-className" ),
33
38
]
34
39
)
35
40
dash_dcc .start_server (app )
36
41
time .sleep (0.5 )
37
42
dash_dcc .percy_snapshot ("upca001 children gallery" )
38
43
39
- first_child = dash_dcc .find_element ("#upload" ).find_element_by_css_selector (":first-child" )
44
+ first_child = dash_dcc .find_element ("#upload" ).find_element_by_css_selector (
45
+ ":first-child"
46
+ )
40
47
# Check that there is no default style since className is specified
41
48
style = first_child .get_attribute ("style" )
42
- assert "opacity: 0.5" not in style
49
+ assert "opacity: 0.5" not in style
43
50
44
- first_child = dash_dcc .find_element ("#upload-no-className" ).find_element_by_css_selector (":first-child" )
51
+ first_child = dash_dcc .find_element (
52
+ "#upload-no-className"
53
+ ).find_element_by_css_selector (":first-child" )
45
54
46
55
# Check that there is default style since no className is specified
47
56
style = first_child .get_attribute ("style" )
48
- assert "opacity: 0.5" in style
57
+ assert "opacity: 0.5" in style
49
58
50
59
assert dash_dcc .get_logs () == []
0 commit comments