Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Enhance test stability in drive_tests.js (#993)
* fix: Enhance test stability in drive_tests.js In the drive_tests.js file, I improved test stability by introducing steps in two test cases: "test drive to external link" and "test drive enabled by default; click link inside data-turbo='false'." The added calls ensure that the respective elements (e.g., "#drive_enabled_external" and "#drive_disabled") are present and visible before interacting with them, reducing the chances of element unavailability issues during test execution. This resolves test failures where elements were not immediately accessible, leading to test timeouts. * Revert 'await page.click(#drive_disabled)' to 'nextBody' for explicit navigation wait This commit reverts one of the changes made in commit 641947d where I replaced 'nextBody' with 'await page.click(#drive_disabled)'. The reason for this reversion is to stick to explicit waiting for page navigation to ensure that the page has fully transitioned to its new state before making assertions. The 'nextBody' function is used to achieve this waiting behavior, ensuring the reliability of our tests in certain scenarios. * refactor: Removed unnecessary page.waitForSelector from the PR '641947d'
- Loading branch information