[js] Fix failing javascript tests#17293
Conversation
it seems that FireFox can call pinned JS script two or three times. In this test, the exact count is not important - it's enough to verify that the script was called at least once.
it seems that we don't need to wait: the usual "await driver.get(...)" already does it.
Review Summary by QodoFix failing JavaScript tests and remove unnecessary delays
WalkthroughsDescription• Fix flaky "can unpin script" test by checking script presence instead of exact count • Remove unnecessary delays in test assertions that already wait via driver.get() • Improve test robustness for Firefox which may call pinned scripts multiple times • Refactor test to verify script pinning/unpinning behavior more reliably File Changes1. javascript/selenium-webdriver/test/lib/webdriver_script_test.js
|
Code Review by Qodo
1. JS error race
|
🔗 Related Issues
e.g. https://github.com/SeleniumHQ/selenium/actions/runs/23901428682/job/69699326193?pr=17287
💥 What does this PR do?
Fixes the failing JS test.
🔄 Types of changes