Merge pull request #33044 from woocommerce/update/k6-merch-wc-home-assert

Updated assertion for k6 merchant wc home request
This commit is contained in:
Tam Mullen 2022-05-16 17:50:52 +01:00 committed by GitHub
commit e8740f8b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: updating performance test request

View File

@ -46,7 +46,7 @@ export function homeWCAdmin() {
check(response, { check(response, {
"is status 200": (r) => r.status === 200, "is status 200": (r) => r.status === 200,
"body contains: current page is 'Home'": (response) => "body contains: current page is 'Home'": (response) =>
response.body.includes('aria-current="page">Home</a>'), response.body.includes('aria-current="page">Home'),
}); });
// Correlate nonce values for use in subsequent requests. // Correlate nonce values for use in subsequent requests.