test: remove flaky click from navigation spec #21466
Merged
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 facing changelog
No changes.
Additional details
The flaky test is checking that the mutation to store the width of the InlineSpecsList is called with a specific width value.
To check the value, the test expects at a certain position of the right hand edge of the reporter, the reporter takes up the full space between the nav and the AUT.
Previously, it used to click the "toggle specs list" button to close the specs list, before doing the test. Now that the specs list is closed by default, this test is in the weird situation of only passing when that click flakes, which is a known issue (see comment here), we often use
{ force: true }
elsewhere when clicking that button in an e2e test.This PR removes the click since it is no longer needed.
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?