How to use the @wordpress/e2e-test-utils.clearLocalStorage function in @wordpress/e2e-test-utils

To help you get started, we’ve selected a few @wordpress/e2e-test-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github google / site-kit-wp / tests / e2e / utils / reset.js View on Github external
export async function resetSiteKit() {
	await activatePlugin( PLUGIN_SLUG );
	clearLocalStorage();
	clearSessionStorage();
	await deactivatePlugin( PLUGIN_SLUG );
}
github WordPress / gutenberg / packages / e2e-tests / config / setup-test-framework.js View on Github external
async function setupBrowser() {
	await clearLocalStorage();
	await setBrowserViewport( 'large' );
}
github Automattic / Edit-Flow / tests / e2e / config / setup-test-framework.js View on Github external
async function setupBrowser() {
	await clearLocalStorage();
	await setBrowserViewport( 'large' );
}