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

Sanketshevkar/14/cypress setup #281

Closed
wants to merge 3 commits into from
Closed

Sanketshevkar/14/cypress setup #281

wants to merge 3 commits into from

Conversation

sanketshevkar
Copy link
Member

Changes

  • Added cypress as a devDependency and wrote a dummy test within the cypress/intergrations folder.
  • You need to install cypress on your local machine so as to run tests. Instructions for installing cypress on local machine: https://docs.cypress.io/guides/getting-started/installing-cypress.html#System-requirements
  • To run the test you need two terminal windows, on the first one you need to run npm run storybook and once the storybook loads, on the second terminal within packages/storybook run npm run cypress:open. Cypress app would start and select the markdownEditor.spec.js file and then the test should start.

Flags

  • After the cypress setup and testing it once. When I tried npm run storybook again, the build failed but then after running lerna clean && lerna bootstrap && lerna run build the tests and the storybook web-app ran fine.

Screenshots or Video

https://www.loom.com/share/72e05a6e0c014ba6940fb36b757580a8

Related Issues

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to master from fork:branchname
  • Manual accessibility test performed
    • Keyboard-only access, including forms
    • Contrast at least WCAG Level A
    • Appropriate labels, alt text, and instructions

Signed-off-by: User <shevkar.sanket@gmail.com>
@sanketshevkar sanketshevkar deleted the sanketshevkar/14/cypress-setup branch March 5, 2021 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant