You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//py:common-edge-bidi-test/selenium/webdriver/common/bidi_tests.py::test_collect_log_mutations was flaky - fixed test by removing line not reliant on bidi functionality, but the html itself.
Description
removed unnecessary line in bidi_tests.py::test_collect_log_mutations
Motivation and Context
A flaky test in CI - it was driving me nuts
Types of changes
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
Use a more specific wait condition to directly check for the style attribute change
Consider using a more specific wait condition that directly checks for the style attribute change, rather than relying on the CSS property. This can make the test more robust and potentially faster.
Why: The suggestion improves the robustness and efficiency of the test by directly checking the style attribute change, which is more precise than relying on a CSS property. This change aligns with the test's purpose and can potentially make it faster.
8
Possible issue
✅ Ensure that the wait condition is met before capturing and asserting the eventSuggestion Impact:The commit moved the assertions inside the async context manager, aligning with the suggestion to ensure the wait condition is met before capturing and asserting the event.
Consider moving the WebDriverWait logic into the async context manager to ensure that the wait condition is met before the event is captured and asserted.
Why: Moving the WebDriverWait logic inside the async context manager ensures that the condition is satisfied before capturing and asserting the event, which can prevent race conditions and improve test reliability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
//py:common-edge-bidi-test/selenium/webdriver/common/bidi_tests.py::test_collect_log_mutations was flaky - fixed test by removing line not reliant on bidi functionality, but the html itself.
Description
removed unnecessary line in bidi_tests.py::test_collect_log_mutations
Motivation and Context
A flaky test in CI - it was driving me nuts
Types of changes
Checklist
PR Type
Bug fix
Description
bidi_tests.pyby removing an unnecessary WebDriverWait condition that was not reliant on bidi functionality.test_collect_log_mutationsfunction to improve test reliability.Changes walkthrough 📝
bidi_tests.py
Remove redundant WebDriverWait condition in testpy/test/selenium/webdriver/common/bidi_tests.py
test_collect_log_mutationsfunction.