Skip to content

Commit a88236c

Browse files
committed
Fix Tests
1 parent 5e559ce commit a88236c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

utils/modify_tests.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'test_console.py',
88

99
# query_selector is deprecated
10-
'test_query_selector.py',
10+
'test_queryselector.py',
1111
'test_element_handle.py',
1212
'test_element_handle_wait_for_element_state.py',
1313

@@ -80,10 +80,6 @@
8080
"test_expose_function_should_work_on_frames_before_navigation",
8181
]
8282

83-
# Directory containing the test files
84-
async_test_dir = 'tests/async'
85-
sync_test_dir = 'tests/sync'
86-
8783
# Reason for skipping tests_backup
8884
skip_reason = "Skipped as per documentation (https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/issues/31)"
8985

@@ -150,7 +146,7 @@ def main():
150146
with open("./tests/assets/inject.html", "w") as f:
151147
f.write("<script>window.result = window.injected;</script>")
152148

153-
for root, _, files in itertools.chain(os.walk(sync_test_dir), os.walk(async_test_dir)):
149+
for root, _, files in os.walk("tests"):
154150
for file in files:
155151
file_path = os.path.join(root, file)
156152

0 commit comments

Comments
 (0)