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] e2e tests fix (Comparison feature flag) #137209

Merged
merged 7 commits into from Aug 2, 2022

Conversation

cauemarcondes
Copy link
Contributor

@cauemarcondes cauemarcondes commented Jul 26, 2022

Fixed the tests by removing the dependency on each other state. I also created a new command to update values in the Advanced settings, we no longer need to navigate there to update a value.

@cauemarcondes cauemarcondes marked this pull request as ready for review August 1, 2022 13:10
@cauemarcondes cauemarcondes requested a review from a team as a code owner August 1, 2022 13:10
@cauemarcondes
Copy link
Contributor Author

@elasticmachine merge upstream

@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Aug 1, 2022
@cauemarcondes cauemarcondes added release_note:skip Skip the PR/issue when compiling release notes and removed Team:APM All issues that need APM UI Team support labels Aug 1, 2022
@cauemarcondes cauemarcondes changed the title [APM] e2e tests fix [APM] e2e tests fix (Comparison feature flag) Aug 1, 2022
@@ -8,13 +8,14 @@
declare namespace Cypress {
interface Chainable {
loginAsViewerUser(): void;
loginAsEditorUser(): void;
loginAsEditorUser(): Promise<Cypress.Response<any>>;
Copy link
Contributor

@kpatticha kpatticha Aug 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect also the other loginAs* functions to return a promise. Do you think it make sense to update them?

@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Aug 2, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

Copy link
Contributor

@kpatticha kpatticha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing it. Just left a comment

},
});
}
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better to do it via the api 👍 It felt like we were writing e2e tests for Advanced settings before.

Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cauemarcondes cauemarcondes enabled auto-merge (squash) August 2, 2022 13:02
@cauemarcondes
Copy link
Contributor Author

buildkite test this

@cauemarcondes cauemarcondes merged commit 788d688 into elastic:main Aug 2, 2022
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

History

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

@kibanamachine kibanamachine added v8.5.0 backport:skip This commit does not require backporting labels Aug 2, 2022
@cauemarcondes cauemarcondes deleted the apm-e2e-tests-fix branch August 2, 2022 19:56
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 release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants