Skip to content

Commit

Permalink
Merge pull request #174 from woocommerce/24-05/8.9.2-sync
Browse files Browse the repository at this point in the history
Sync Woo E2E 8.9.2 snapshots
  • Loading branch information
Luc45 authored Jun 11, 2024
2 parents 1b65a19 + 2bd6d2a commit 443f47a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 22 deletions.
9 changes: 9 additions & 0 deletions _tests/managed_tests/QITSelfTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ class Context {
# Comma-separated list of scenarios to run, eg: no_op,no_op_php82,delete_products
if ( isset( $params[3] ) ) {
Context::$scenarios = array_map( 'trim', explode( ',', $params[3] ) );
// Filter any values that start with "--".
Context::$scenarios = array_filter( Context::$scenarios, static function ( $v ) {
return strpos( $v, "--" ) !== 0;
} );

if ( empty( Context::$scenarios ) ) {
Context::$scenarios = null;
}
} else {
Context::$scenarios = null;
}
Expand Down Expand Up @@ -120,6 +128,7 @@ class Context {
} else {
echo $e->getMessage();
}
echo "Exiting by exception\n";
die( 1 );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"test_results_manager_url": "https:\\/\\/test-results-manager.com",
"test_results_manager_expiration": 1234567890,
"test_summary": "352 total, 301 passed, 0 failed, 51 skipped.",
"test_summary": "352 total, 297 passed, 0 failed, 55 skipped.",
"version": "Undefined",
"update_complete": true,
"ai_suggestion_status": "none",
Expand All @@ -44,12 +44,12 @@
{
"test_result_json": {
"numFailedTestSuites": 0,
"numPassedTestSuites": 71,
"numPendingTestSuites": 25,
"numPassedTestSuites": 70,
"numPendingTestSuites": 26,
"numTotalTestSuites": 96,
"numFailedTests": 0,
"numPassedTests": 301,
"numPendingTests": 51,
"numPassedTests": 297,
"numPendingTests": 55,
"numTotalTests": 352,
"testResults": [
{
Expand Down Expand Up @@ -1246,7 +1246,7 @@
{
"file": "merchant\\/products\\/block-editor\\/create-simple-product-block-editor.spec.js",
"status": "passed",
"has_pending": false,
"has_pending": true,
"tests": {
"General tab": [],
"General tab > Simple product form": [
Expand All @@ -1258,15 +1258,15 @@
"General tab > Create product": [
{
"title": "can create a simple product",
"status": "passed"
"status": "pending"
},
{
"title": "can not create a product with duplicated SKU",
"status": "passed"
"status": "pending"
},
{
"title": "can a shopper add the simple product to the cart",
"status": "passed"
"status": "pending"
}
]
}
Expand Down Expand Up @@ -2015,7 +2015,7 @@
"Checkout Block page": [
{
"title": "can see empty checkout block page",
"status": "passed"
"status": "pending"
},
{
"title": "allows customer to choose available payment methods",
Expand Down Expand Up @@ -2416,7 +2416,7 @@
}
}
],
"summary": "352 total, 301 passed, 0 failed, 51 skipped."
"summary": "352 total, 297 passed, 0 failed, 55 skipped."
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"test_results_manager_url": "https:\\/\\/test-results-manager.com",
"test_results_manager_expiration": 1234567890,
"test_summary": "352 total, 301 passed, 0 failed, 51 skipped.",
"test_summary": "352 total, 297 passed, 0 failed, 55 skipped.",
"version": "Undefined",
"update_complete": true,
"ai_suggestion_status": "none",
Expand All @@ -44,12 +44,12 @@
{
"test_result_json": {
"numFailedTestSuites": 0,
"numPassedTestSuites": 71,
"numPendingTestSuites": 25,
"numPassedTestSuites": 70,
"numPendingTestSuites": 26,
"numTotalTestSuites": 96,
"numFailedTests": 0,
"numPassedTests": 301,
"numPendingTests": 51,
"numPassedTests": 297,
"numPendingTests": 55,
"numTotalTests": 352,
"testResults": [
{
Expand Down Expand Up @@ -1246,7 +1246,7 @@
{
"file": "merchant\\/products\\/block-editor\\/create-simple-product-block-editor.spec.js",
"status": "passed",
"has_pending": false,
"has_pending": true,
"tests": {
"General tab": [],
"General tab > Simple product form": [
Expand All @@ -1258,15 +1258,15 @@
"General tab > Create product": [
{
"title": "can create a simple product",
"status": "passed"
"status": "pending"
},
{
"title": "can not create a product with duplicated SKU",
"status": "passed"
"status": "pending"
},
{
"title": "can a shopper add the simple product to the cart",
"status": "passed"
"status": "pending"
}
]
}
Expand Down Expand Up @@ -2015,7 +2015,7 @@
"Checkout Block page": [
{
"title": "can see empty checkout block page",
"status": "passed"
"status": "pending"
},
{
"title": "allows customer to choose available payment methods",
Expand Down Expand Up @@ -2416,7 +2416,7 @@
}
}
],
"summary": "352 total, 301 passed, 0 failed, 51 skipped."
"summary": "352 total, 297 passed, 0 failed, 55 skipped."
}
},
{
Expand Down

0 comments on commit 443f47a

Please sign in to comment.