Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egaraujo/coffee-cart-ui-automation
UI Automation with Cypress
https://github.com/egaraujo/coffee-cart-ui-automation
cypress javascript test-automation
Last synced: 8 days ago
JSON representation
UI Automation with Cypress
- Host: GitHub
- URL: https://github.com/egaraujo/coffee-cart-ui-automation
- Owner: egaraujo
- Created: 2024-06-26T21:28:29.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-18T15:51:31.000Z (3 months ago)
- Last Synced: 2024-08-18T17:18:45.310Z (3 months ago)
- Topics: cypress, javascript, test-automation
- Language: JavaScript
- Homepage:
- Size: 308 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UI Automation with Cypress
This is a test suite in Cypress, for coffee-cart app
## Run tests
1. Clone the repo
2. Install dependencies: `npm install`
3. Start local server: `npm run dev`
4. Run tests from **src** folder:
`npx cypress open` for test runner
`npx cypress run` for headless mode## Test cases
![screenshot](https://github.com/egaraujo/coffee-cart-ui-automation/blob/master/screenshot.png)
• Should display header menu with three link items
• Should visit each menu item link
• Should display nine coffee coups
• Should display display each coffee cup information correctly
• Should display each coffee name in Chinese
• Should summarize selected products
• Should add fourth coffee in cart when accepted
• Should omit fourth coffee in cart when rejected
• Should increase cart total when a product is added
• Should decrease cart total when a product is removed
• Should open cart dialog and add coffe to cart
• Should open cart dialog and keep cart empty
• Should alert on empty name for payment data
• Should alert on empty mail for payment data
• Should submit payment details when personal data is completed
• Should have an empty cart initially
• Should reach every link on github page## Links
coffee-cart app: https://coffee-cart.app
coffee-cart repository: https://github.com/jecfish/coffee-cart