An open API service indexing awesome lists of open source software.

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

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.' )
} );
} );
~~~