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] Stabilize cypress tests and move to datastreams #137977
Conversation
c3ff9ef
to
a0b88ca
Compare
Failing test:
|
3dadb94
to
2f011f4
Compare
cc9014e
to
6dfcf6b
Compare
cy.loginAsEditorUser().then(() => { | ||
// enables comparison feature on advanced settings | ||
cy.updateAdvancedSettings({ | ||
'observability:enableComparisonByDefault': true, | ||
}); | ||
}); |
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.
This test was relying on the advanced setting observability:enableComparisonByDefault
to be true
. However, this is not always the case. We should write test so they can run independently of other tests.
before(async () => { | ||
await synthtrace.index( | ||
before(() => { | ||
synthtrace.index( |
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.
We should no longer use await
before synthtrace.clean
or synthtrace.index
since they are Cypress tasks handled by cypress own queueing mechanism
e16fa9f
to
ea3389e
Compare
1912ad0
to
5fc0db9
Compare
Pinging @elastic/apm-ui (Team:apm) |
9ed143d
to
758c056
Compare
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.
Thanks for doing this, lots of good stuff here! I've added some comments on the PR.
...gins/apm/ftr_e2e/cypress/integration/read_only_user/service_overview/instances_table.spec.ts
Outdated
Show resolved
Hide resolved
x-pack/test/apm_api_integration/tests/infrastructure/infrastructure_attributes.spec.ts
Show resolved
Hide resolved
@gbamparop All comments addressed |
thanks for addressing those! |
3a07c67
to
a5d5e0d
Compare
fe22788
to
428dd68
Compare
d1ff437
to
10c897d
Compare
3d1c86e
to
bc704fb
Compare
💔 Build FailedFailed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Public APIs missing exports
History
To update your PR or re-run it, just comment with: |
Pull request was closed
Closes #136627
Changes:
cy.session
for logincy.visit
withcy.visitKibana
which waits for Kibana to have loaded before moving to the next stepOther improvements:
node scripts/functional_tests.js --config=./x-pack/plugins/apm/ftr_e2e/ftr_config.ts