-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Migrate existing Cypress tests to Cypress + Cucumber #56970
Conversation
It seems not relevant to the main purpose of these tests
We are keeping cypress as rootDir to follow project's structure. On the other hand, having a second cypress directory at the 2nd level is the default structure, as shown in the examples: - https://github.com/TheBrainFamily/cypress-cucumber-webpack-typescript-example - https://github.com/cypress-io/cypress-example-recipes/tree/a240054d7f5626ffcd7bd668dded96d219c4a7eb/examples/preprocessors__typescript-webpack
It was automatically changed by tests
Pinging @elastic/apm-ui (Team:apm) |
@elasticmachine merge upstream |
Feature: APM | ||
|
||
Background: | ||
Given a user browses the APM UI application | ||
When the user inspects the opbeans-go service | ||
|
||
Scenario: Transaction duration charts | ||
Then should redirect to correct path with correct params | ||
And should have correct y-axis ticks |
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.
Hey @MadameSheema, I'd would love to get your insights about this spec 🙏 😊
@elasticmachine merge upstream |
💔 Build FailedHistory
To update your PR or re-run it, just comment with: |
Let's delegate dependency management to Kibana's build system
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💔 Build FailedHistory
To update your PR or re-run it, just comment with: |
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.
renovate lgtm
After talking to @sqren, I'm going to close this PR and resend with following changes:
|
Summary
It converts the existing Cypress tests for APM from Cypress to Cypress+Cucumber. To achieve that, it adds a cucumber-preprocessor, as shown in the following examples:
The cypress tests are run using the same
npm run cypress:run
script, so no CI command should be affected.As recommended by @elastic/kibana-operations, we moved the dependecies to
x-pack
's package.json.Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] This was checked for cross-browser compatibility, including a check against IE11- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] Unit or functional tests were updated or added to match the most common scenarios- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
- [ ] This was checked for breaking API changes and was labeled appropriately- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately