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

SPIKE - Component testing in Cypress #51

Open
vferraro-scottlogic opened this issue Sep 20, 2023 · 0 comments
Open

SPIKE - Component testing in Cypress #51

vferraro-scottlogic opened this issue Sep 20, 2023 · 0 comments
Labels
spike Investigative work

Comments

@vferraro-scottlogic
Copy link

vferraro-scottlogic commented Sep 20, 2023

Background

We have a cypress test for the screenshot functionality. the test is currently under e2e directory we want to move it under components/ or integration/

Outcomes

  • understand Component Test in Cypress
  • difference between Component test in cypress and React unit test
  • figure out what to do with screenshot tests currently in e2e/ (move to component/ ?)

Notes

The e2e tests should cover the most obvious, important user flows
Integration tests should cover less important permutations, and interactions between different layers of our application
For example, our e2e might be As a user, I can save a layout. Integration tests related to that might be When I save a layout, I can see a screenshot of the layout and When I save a layout, I see a dialog to confirm details of the layout to be saved

Useful Links

https://docs.cypress.io/guides/core-concepts/testing-types
https://docs.cypress.io/guides/component-testing/overview

@vferraro-scottlogic vferraro-scottlogic changed the title Cypress: move screenshot test to integration tests folder Cypress: move screenshot test to component tests folder Sep 20, 2023
@cfisher-scottlogic cfisher-scottlogic added this to the Layout Management milestone Sep 21, 2023
@vferraro-scottlogic vferraro-scottlogic added the spike Investigative work label Sep 25, 2023
@vferraro-scottlogic vferraro-scottlogic changed the title Cypress: move screenshot test to component tests folder SPIKE - Component testing in Cypress Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spike Investigative work
Projects
None yet
Development

No branches or pull requests

2 participants