2023-05-05 11:03:36 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import path from 'path';
|
|
|
|
|
2024-01-18 10:39:24 +00:00
|
|
|
export const BLOCK_THEME_WITH_TEMPLATES_SLUG = 'theme-with-woo-templates';
|
|
|
|
export const BLOCK_THEME_WITH_TEMPLATES_NAME = 'Theme with Woo Templates';
|
2023-11-21 09:11:19 +00:00
|
|
|
export const BLOCK_THEME_SLUG = 'twentytwentyfour';
|
|
|
|
export const BLOCK_THEME_NAME = 'Twenty Twenty-Four';
|
2024-03-14 12:33:33 +00:00
|
|
|
export const BLOCK_CHILD_THEME_WITH_BLOCK_NOTICES_FILTER_SLUG = `${ BLOCK_THEME_SLUG }-child__block-notices-filter`;
|
|
|
|
export const BLOCK_CHILD_THEME_WITH_BLOCK_NOTICES_TEMPLATE_SLUG = `${ BLOCK_THEME_SLUG }-child__block-notices-template`;
|
|
|
|
export const BLOCK_CHILD_THEME_WITH_CLASSIC_NOTICES_TEMPLATE_SLUG = `${ BLOCK_THEME_SLUG }-child__classic-notices-template`;
|
2023-08-28 10:04:28 +00:00
|
|
|
export const CLASSIC_THEME_SLUG = 'storefront';
|
|
|
|
export const CLASSIC_THEME_NAME = 'Storefront';
|
2024-03-14 12:33:33 +00:00
|
|
|
export const CLASSIC_CHILD_THEME_WITH_BLOCK_NOTICES_FILTER_SLUG = `${ CLASSIC_THEME_SLUG }-child__block-notices-filter`;
|
|
|
|
export const CLASSIC_CHILD_THEME_WITH_BLOCK_NOTICES_TEMPLATE_SLUG = `${ CLASSIC_THEME_SLUG }-child__block-notices-template`;
|
|
|
|
export const CLASSIC_CHILD_THEME_WITH_CLASSIC_NOTICES_TEMPLATE_SLUG = `${ CLASSIC_THEME_SLUG }-child__classic-notices-template`;
|
2023-05-05 11:03:36 +00:00
|
|
|
export const BASE_URL = 'http://localhost:8889';
|
2023-12-08 16:44:59 +00:00
|
|
|
|
2024-02-23 10:17:46 +00:00
|
|
|
export const WP_ARTIFACTS_PATH =
|
|
|
|
process.env.WP_ARTIFACTS_PATH ||
|
|
|
|
path.join( process.cwd(), 'tests/e2e/artifacts' );
|
|
|
|
|
|
|
|
export const STORAGE_STATE_PATH =
|
|
|
|
process.env.STORAGE_STATE_PATH ||
|
|
|
|
path.join( WP_ARTIFACTS_PATH, 'storage-states/admin.json' );
|
|
|
|
|
|
|
|
// User roles storage states
|
|
|
|
export const adminFile = STORAGE_STATE_PATH;
|
|
|
|
export const customerFile = path.join(
|
|
|
|
path.dirname( STORAGE_STATE_PATH ),
|
|
|
|
'customer.json'
|
|
|
|
);
|
|
|
|
export const guestFile = { cookies: [], origins: [] };
|