Fix ci translations and tidy up scripts
This commit is contained in:
parent
6ee3de76a5
commit
b7688113ef
|
@ -1,22 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Check if user already exists
|
||||
wp user get customer 2> /dev/null
|
||||
|
||||
## if 0 is the exit code then we can leave otherwise we'll try creating the user
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
EXIT_CODE=0
|
||||
else
|
||||
wp user create customer customer@woocommercecoree2etestsuite.com --user_pass=password --role=customer
|
||||
EXIT_CODE=$?
|
||||
fi
|
||||
|
||||
## set permalinks for easier wp-json
|
||||
wp rewrite structure '/%postname%/' --hard
|
||||
wp core version --extra
|
||||
wp plugin list
|
||||
wp theme activate storefront
|
||||
wp wc customer update 1 --user=1 --billing='{"first_name":"John","last_name":"Doe","company":"Automattic","country":"US","address_1":"addr 1","address_2":"addr 2","city":"San Francisco","state":"CA","postcode":"94107","phone":"123456789"}' --shipping='{"first_name":"John","last_name":"Doe","company":"Automattic","country":"US","address_1":"addr 1","address_2":"addr 2","city":"San Francisco","state":"CA","postcode":"94107","phone":"123456789"}'
|
||||
wp language core install nl_NL
|
||||
exit $EXIT_CODE
|
|
@ -94,7 +94,6 @@
|
|||
"env:stop": "pnpm run wp-env stop",
|
||||
"test:help": "wp-scripts test-unit-js --help",
|
||||
"test:performance": "sh ./bin/check-env.sh && pnpm playwright test --config=tests/e2e/playwright.performance.config.ts",
|
||||
"test:generate-translations": "node ./bin/generate-test-translations.js",
|
||||
"test:update": "wp-scripts test-unit-js --updateSnapshot --config tests/js/jest.config.json",
|
||||
"test:watch": "pnpm run test -- --watch",
|
||||
"ts:check": "tsc --build",
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# wp language core install nl_NL
|
||||
# wp language plugin install woocommerce nl_NL
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# Remove the database snapshot if it exists.
|
||||
wp-env run tests-cli -- rm -f blocks_e2e.sql
|
||||
|
@ -7,9 +8,5 @@ wp-env run tests-cli -- bash wp-content/plugins/woocommerce/blocks-bin/playwrigh
|
|||
# Disable the LYS Coming Soon banner.
|
||||
wp-env run tests-cli -- wp option update woocommerce_coming_soon 'no'
|
||||
|
||||
#!/bin/sh
|
||||
BASENAME=$(basename "`pwd`")
|
||||
# We need to pass the blocks plugin folder name to the script, the name can change depending on your local env and we can't hardcode it.
|
||||
wp-env run tests-cli './wp-content/plugins/woocommerce/blocks-bin/wp-env-config.sh' woocommerce
|
||||
|
||||
node ./tests/e2e/bin/generate-test-translations.js
|
||||
echo "Generating test translations"
|
||||
node $script_dir/generate-test-translations.js
|
|
@ -75,7 +75,6 @@
|
|||
"test:unit:watch": "pnpm test:php:watch",
|
||||
"test:unit:env": "pnpm test:php:env",
|
||||
"test:unit:env:watch": "pnpm test:php:env:watch",
|
||||
"test:generate-test-translations": "node ./bin/generate-test-translations.js",
|
||||
"update-wp-env": "php ./tests/e2e-pw/bin/update-wp-env.php",
|
||||
"watch:build": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel '/^watch:build:project:.*$/'",
|
||||
"watch:build:admin": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"@woocommerce/admin-library...\" --filter=\"$npm_package_name\" --parallel '/^watch:build:project:.*$/'",
|
||||
|
@ -694,7 +693,6 @@
|
|||
"eslint-config-wpcalypso": "5.0.0",
|
||||
"eslint-plugin-jest": "23.20.0",
|
||||
"eslint-plugin-playwright": "0.22.1",
|
||||
"fs-extra": "11.1.1",
|
||||
"istanbul": "1.0.0-alpha.2",
|
||||
"jest": "27.5.x",
|
||||
"mocha": "7.2.0",
|
||||
|
@ -788,8 +786,10 @@
|
|||
"node_modules/@woocommerce/e2e-core-tests/CHANGELOG.md",
|
||||
"node_modules/@woocommerce/api/dist/",
|
||||
"node_modules/@woocommerce/admin-e2e-tests/build",
|
||||
"node_modules/@woocommerce/classic-assets/build",
|
||||
"node_modules/@woocommerce/block-library/build",
|
||||
"node_modules/@woocommerce/block-library/blocks.ini",
|
||||
"node_modules/@woocommerce/admin-library/build",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/admin-e2e-tests/*.ts.map",
|
||||
"!node_modules/@woocommerce/admin-e2e-tests/*.tsbuildinfo",
|
||||
|
|
|
@ -3438,9 +3438,6 @@ importers:
|
|||
eslint-plugin-playwright:
|
||||
specifier: 0.22.1
|
||||
version: 0.22.1(eslint-plugin-jest@23.20.0(eslint@8.55.0)(typescript@5.3.3))(eslint@8.55.0)
|
||||
fs-extra:
|
||||
specifier: 11.1.1
|
||||
version: 11.1.1
|
||||
istanbul:
|
||||
specifier: 1.0.0-alpha.2
|
||||
version: 1.0.0-alpha.2
|
||||
|
@ -22569,7 +22566,7 @@ packages:
|
|||
engines: {node: '>=18'}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
react: 18.2.0
|
||||
react: ^17.0.2
|
||||
|
||||
react-number-format@4.9.3:
|
||||
resolution: {integrity: sha512-am1A1xYAbENuKJ+zpM7V+B1oRTSeOHYltqVKExznIVFweBzhLmOBmyb1DfIKjHo90E0bo1p3nzVJ2NgS5xh+sQ==}
|
||||
|
@ -22759,7 +22756,7 @@ packages:
|
|||
react-with-direction@1.4.0:
|
||||
resolution: {integrity: sha512-ybHNPiAmaJpoWwugwqry9Hd1Irl2hnNXlo/2SXQBwbLn/jGMauMS2y9jw+ydyX5V9ICryCqObNSthNt5R94xpg==}
|
||||
peerDependencies:
|
||||
react: ^0.14 || ^15 || ^16
|
||||
react: ^17.0.2
|
||||
react-dom: ^0.14 || ^15 || ^16
|
||||
|
||||
react-with-styles-interface-css@4.0.3:
|
||||
|
|
Loading…
Reference in New Issue