Skip to content
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

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

tonyghiani
Copy link
Contributor

📓 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.

@tonyghiani tonyghiani requested a review from a team as a code owner September 3, 2024 08:25
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Sep 3, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@tonyghiani tonyghiani added the release_note:skip Skip the PR/issue when compiling release notes label Sep 3, 2024
Comment on lines +91 to +92
cy.getByTestSubj('superDatePickerAbsoluteDateInput').clear({ force: true });
cy.getByTestSubj('superDatePickerAbsoluteDateInput')
Copy link
Contributor Author

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.

Copy link
Contributor

@cauemarcondes cauemarcondes left a 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 🙏🏻

@cauemarcondes cauemarcondes enabled auto-merge (squash) September 3, 2024 09:59
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #7 / useSetupTechnology should update new agent policy and selected policy tab when setup technology is agent-based

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cauemarcondes cauemarcondes merged commit a0cc891 into elastic:main Sep 3, 2024
28 checks passed
@kibanamachine kibanamachine added v8.16.0 backport:skip This commit does not require backporting labels Sep 3, 2024
@tonyghiani tonyghiani deleted the fix/cypress-test-command branch September 3, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants