-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APM] Update Cypress command to access super date picker #191949
[APM] Update Cypress command to access super date picker #191949
Conversation
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
cy.getByTestSubj('superDatePickerAbsoluteDateInput').clear({ force: true }); | ||
cy.getByTestSubj('superDatePickerAbsoluteDateInput') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
This element query is not chained to prevent incurring this detached reference error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for fixing it 🙏🏻
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
To update your PR or re-run it, just comment with: |
📓 Summary
Given a change in the HTML structure of the SuperDatePicker component from EUI, the
selectAbsoluteTimeRange
was no longer capable of typing the passed date.Once the PR to update EUI was merged, it didn't go through the APM Cypress suite since those files where not touched, causing the false positive in the CI step.
This change directly accesses the input field without relying on sibling elements.