https://github.com/dr5hn/cypress-woocommerce
End-To-End (E2E) test utils for WooCommerce
https://github.com/dr5hn/cypress-woocommerce
Last synced: 3 months ago
JSON representation
End-To-End (E2E) test utils for WooCommerce
- Host: GitHub
- URL: https://github.com/dr5hn/cypress-woocommerce
- Owner: dr5hn
- License: gpl-3.0
- Created: 2022-02-17T14:03:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T15:21:27.000Z (almost 5 years ago)
- Last Synced: 2025-02-27T03:03:48.249Z (3 months ago)
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cypress WooCommerce
Adds WooCommerce support to [Cypress](https://www.cypress.io/).## Installation
```bash
npm install -D cypress-woocommerce
```## Usage
Example:
~~~js
import {
CustomerFlow,
StoreOwnerFlow
} from 'cypress-woocommerce';describe( 'Cart page', () => {
before( () => {
StoreOwnerFlow.login();
StoreOwnerFlow.openSettings();
StoreOwnerFlow.logout();
} );it( 'should display no item in the cart', () => {
CustomerFlow.goToCart()
cy.contains( '.cart-empty', 'Your cart is currently empty.' )
} );
} );
~~~