Skip to content

Commit 23589ee

Browse files
author
mattallan
committed
import sample products at start of tests instead of during docker init
1 parent d392306 commit 23589ee

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

tests/e2e/docker/initialize.sh

+1-9
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,4 @@ wp option set woocommerce_product_type "both"
1919
wp option set woocommerce_allow_tracking "no"
2020

2121
echo "Importing WooCommerce shop pages..."
22-
wp wc --user=admin tool run install_pages
23-
24-
25-
26-
echo "Installing and activating the WordPress Importer plugin..."
27-
wp plugin install wordpress-importer --activate
28-
29-
echo "Importing some sample data..."
30-
wp import wp-content/plugins/woocommerce/sample-data/sample_products.xml --authors=skip
22+
wp wc --user=admin tool run install_pages

tests/e2e/setup/jest-setup.js

+1
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ beforeAll( async () => {
243243
enablePageDialogAccept();
244244
observeConsoleLogging();
245245
await trashExistingPosts();
246+
await importSampleProducts();
246247
await setupBrowser();
247248
} );
248249

0 commit comments

Comments
 (0)