2020-09-04 02:31:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "Initializing WooCommerce E2E"
|
|
|
|
|
2020-10-28 17:12:14 +00:00
|
|
|
# Turn off error display temporarily. This is to prevent deprecated function
|
|
|
|
# notices from breaking the display of some screens and then E2E tests.
|
|
|
|
# Message was for WC_Admin_Notes_Deactivate_Plugin usage in core WC.
|
|
|
|
wp config set WP_DEBUG_DISPLAY false --raw
|
2020-09-04 02:31:09 +00:00
|
|
|
wp config set JETPACK_AUTOLOAD_DEV true --raw
|
|
|
|
wp plugin install woocommerce --activate
|
2022-02-02 12:55:10 +00:00
|
|
|
wp plugin install https://github.com/woocommerce/woocommerce-reset/zipball/trunk/ --activate
|
2020-09-04 02:31:09 +00:00
|
|
|
wp theme install twentynineteen --activate
|
|
|
|
wp plugin activate woocommerce-admin
|
|
|
|
wp user create customer customer@woocommercecoree2etestsuite.com --user_pass=password --role=customer --path=/var/www/html
|
2021-09-03 11:21:43 +00:00
|
|
|
|
|
|
|
# we cannot create API keys for the API, so we using basic auth, this plugin allows that.
|
|
|
|
wp plugin install https://github.com/WP-API/Basic-Auth/archive/master.zip --activate
|