File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
components/dash-core-components/tests/integration/upload Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def update_output(contents_list):
5555 # Verify the input has folder selection attributes when multiple=True
5656 upload_input = dash_dcc .wait_for_element ("#upload-folder input[type=file]" )
5757 webkitdir_attr = upload_input .get_attribute ("webkitdirectory" )
58-
58+
5959 assert webkitdir_attr == "true" , (
6060 f"webkitdirectory attribute should be 'true' when multiple=True, "
6161 f"but got '{ webkitdir_attr } '"
@@ -100,7 +100,7 @@ def test_upfd002_folder_upload_disabled_with_single(dash_dcc):
100100 # Verify the input does NOT have folder selection attributes when multiple=False
101101 upload_input = dash_dcc .wait_for_element ("#upload-single input[type=file]" )
102102 webkitdir_attr = upload_input .get_attribute ("webkitdirectory" )
103-
103+
104104 # webkitdirectory should not be set when multiple=False
105105 assert webkitdir_attr in [None , "" , "false" ], (
106106 f"webkitdirectory attribute should not be 'true' when multiple=False, "
You can’t perform that action at this time.
0 commit comments