Skip to content

jgreys/cypress-woocommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cypress WooCommerce

Adds WooCommerce support to Cypress.

Installation

npm install -D cypress-woocommerce

Usage

Example:

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

About

End-To-End (E2E) test utils for WooCommerce

Resources

License

Stars

Watchers

Forks

Releases

No releases published