Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APM] Attempt to fix Cypress flaky test in Mobile Transactions (#206639)
## Summary Fixes #206599 This PR aims to fix a flaky test that waits for `aria-selected` attribute to be `true` after click, but it resolved to `false`. The test was written like this: ```` cy.getByTestSubj('apmAppVersionTab').click().should('have.attr', 'aria-selected', 'true'); ```` After some research, I found that having it like that makes Cypress skip waiting for any visual or state changes after the click. This can lead to scenarios where the attribute hasn't been updated yet by the time the expectation is evaluated. By separating the click and the assertion, we effectively allow more time for the state to update, and Cypress will automatically retry it within the configured timeout.
- Loading branch information