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

Are there any plans to add more features around updating test steps? #169

Closed
reify-emmanuel-malave opened this issue Aug 31, 2023 · 2 comments
Assignees
Labels
feature New feature or request rejected A new feature or request has been rejected

Comments

@reify-emmanuel-malave
Copy link

Hello, I have really enjoyed using this plugin for my Cypress/X-Ray integration. Thank you for your work! The update test step feature flag gives a quick solution to generate test step information. I was wondering if there are any plans to expand this update test step functionality. Some things that would be useful for me would be:

  • The ability to update the text within the test step with exactly what I want, not just a copy of the code
  • The ability to update multiple test steps within a test
  • The ability to update the data and expected result fields within the test steps
@csvtuda csvtuda added feature New feature or request under investigation The issue is being investigated labels Aug 31, 2023
@csvtuda
Copy link
Contributor

csvtuda commented Aug 31, 2023

Hey,

these are all good ideas, thank you. Actually, I've often thought about more advanced test step integrations, it's obviously not a good solution with the test code as one big step right now.

I'd love to somehow address all your three wishes, but the problem is that Cypress does not really fit into Xray's step scheme. Cypress just does not have a notion of a step, it's more or less simply one huge chain of actions.


The only somewhat feasible solution I could think of is providing custom commands like:

cy.step("Click login button", () => {
  cy.get("#login").click();
  cy.get("#login").should("not.exist");
});

but it feels like a lot of overhead for the testers. Even more so when expected and actual results need to be integrated as well. I have no idea how I would even access assertions like above to extract actual and expected values, apart from providing a wrapper around Cypress's assertions (more overhead).


An alternative could be to switch to Cucumber, which is inherently step-based (and already supported by this plugin).

  • Cucumber example: link
  • What it could look like in Xray: link

If Cucumber is not your cup of tea, I'm open for all ideas!

@csvtuda csvtuda self-assigned this Aug 31, 2023
@csvtuda csvtuda added awaiting feedback The issue has been addressed and the reporter's feedback is requested and removed under investigation The issue is being investigated labels Sep 1, 2023
@csvtuda
Copy link
Contributor

csvtuda commented Sep 17, 2023

With the release of Cypress v13, not even the test function's body is accessible to the plugin anymore. I've therefore decided to remove the step updates entirely (see here).

This means that from now on, the plugin will never update test steps of manual test cases again. I think taking my explanation above into account, this pretty much closes your request.

@csvtuda csvtuda closed this as completed Sep 17, 2023
@csvtuda csvtuda added rejected A new feature or request has been rejected and removed awaiting feedback The issue has been addressed and the reporter's feedback is requested labels Sep 17, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request rejected A new feature or request has been rejected
Projects
None yet
Development

No branches or pull requests

2 participants