Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doamaral/cypress-magento-store
https://github.com/doamaral/cypress-magento-store
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/doamaral/cypress-magento-store
- Owner: doamaral
- Created: 2024-03-22T04:39:58.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-03-24T01:03:16.000Z (10 months ago)
- Last Synced: 2024-03-24T06:27:00.822Z (9 months ago)
- Language: JavaScript
- Size: 1.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cypress Testing sample project
![project status](https://github.com/doamaral/cypress-magento-store/workflows/Run%20E2E%20tests%20for%20Magento%20Store%20Project/badge.svg)This project uses Cypress with Cucumber to automate test scenarios for a sample e-commerce online shop. It's also using Page Objects Model Pattern to deal with pages and components throughout the application.
It's running Github Actions for each update to `master` branch## Project Setup
- Clone this repo and navigate to the folder
- Rename the `.env.sample` file to `.env`
- Set expected values for each environment variable in `.env`
- run `npm install` to install all project dependencies## Running tests
### Running headless
- `npm test`### Running on Cypress GUI
- `npm run open`## Dev
To improve your dev experience consider using:
- VSCode
- [Cucumber Gherkin VSCode Plugin](https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete)
- [ESLint VSCode Plugin](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)## References
- https://www.npmjs.com/package/cypress-cucumber-preprocessor
- https://docs.cypress.io/guides/overview/why-cypress
- https://filiphric.com/cucumber-in-cypress-a-step-by-step-guide
- https://www.youtube.com/watch?v=UMFAreP1grE
- https://github.com/cypress-io/github-action
- https://docs.cypress.io/guides/continuous-integration/github-actions