Update shop name to make tests pass.
This commit is contained in:
parent
f1f3bbee38
commit
17876c23aa
|
@ -72,11 +72,11 @@ export function cart() {
|
|||
} );
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title is: "Cart – WooCommerce Core E2E Test Suite"': (
|
||||
'title is: "Cart – WooCommerce E2E Tests"': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'Cart – WooCommerce Core E2E Test Suite',
|
||||
'Cart – WooCommerce E2E Tests',
|
||||
"body does not contain: 'your cart is currently empty'": (
|
||||
response
|
||||
) => ! response.body.includes( 'Your cart is currently empty.' ),
|
||||
|
|
|
@ -44,11 +44,11 @@ export function categoryPage() {
|
|||
);
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title is: "Accessories – WooCommerce Core E2E Test Suite"': (
|
||||
'title is: "Accessories – WooCommerce E2E Tests"': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'Accessories – WooCommerce Core E2E Test Suite',
|
||||
'Accessories – WooCommerce E2E Tests',
|
||||
"body contains: Category's title": ( response ) =>
|
||||
response.body.includes(
|
||||
`<h1 class="woocommerce-products-header__title page-title">${ product_category }</h1>`
|
||||
|
|
|
@ -70,11 +70,11 @@ export function checkoutCustomerLogin() {
|
|||
} );
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title is: "Checkout – WooCommerce Core E2E Test Suite"': (
|
||||
'title is: "Checkout – WooCommerce E2E Tests"': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'Checkout – WooCommerce Core E2E Test Suite',
|
||||
'Checkout – WooCommerce E2E Tests',
|
||||
'body contains checkout class': ( response ) =>
|
||||
response.body.includes(
|
||||
'class="checkout woocommerce-checkout"'
|
||||
|
@ -273,11 +273,11 @@ export function checkoutCustomerLogin() {
|
|||
tags: { name: 'Shopper - Order Received' },
|
||||
} );
|
||||
check( response, {
|
||||
'title is: "Checkout – WooCommerce Core E2E Test Suite"': (
|
||||
'title is: "Checkout – WooCommerce E2E Tests"': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'Checkout – WooCommerce Core E2E Test Suite',
|
||||
'Checkout – WooCommerce E2E Tests',
|
||||
"body contains: 'Thank you. Your order has been received.'": (
|
||||
response
|
||||
) =>
|
||||
|
|
|
@ -60,11 +60,11 @@ export function checkoutGuest() {
|
|||
} );
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title is: "Checkout – WooCommerce Core E2E Test Suite"': (
|
||||
'title is: "Checkout – WooCommerce E2E Tests"': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'Checkout – WooCommerce Core E2E Test Suite',
|
||||
'Checkout – WooCommerce E2E Tests',
|
||||
"body contains: 'woocommerce-checkout' class": ( response ) =>
|
||||
response.body.includes(
|
||||
'class="checkout woocommerce-checkout"'
|
||||
|
@ -184,11 +184,11 @@ export function checkoutGuest() {
|
|||
tags: { name: 'Shopper - Order Received' },
|
||||
} );
|
||||
check( response, {
|
||||
'title is: "Checkout – WooCommerce Core E2E Test Suite"': (
|
||||
'title is: "Checkout – WooCommerce E2E Tests"': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'Checkout – WooCommerce Core E2E Test Suite',
|
||||
'Checkout – WooCommerce E2E Tests',
|
||||
"body contains: 'Thank you. Your order has been received.'": (
|
||||
response
|
||||
) =>
|
||||
|
|
|
@ -36,9 +36,9 @@ export function homePage() {
|
|||
} );
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title is: "WooCommerce Core E2E Test Suite"': ( response ) =>
|
||||
'title is: "WooCommerce E2E Tests"': ( response ) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'WooCommerce Core E2E Test Suite',
|
||||
'WooCommerce E2E Tests',
|
||||
'footer contains: Built with WooCommerce': ( response ) =>
|
||||
response
|
||||
.html()
|
||||
|
|
|
@ -40,11 +40,11 @@ export function myAccountOrders() {
|
|||
} );
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title is: "My account – WooCommerce Core E2E Test Suite"': (
|
||||
'title is: "My account – WooCommerce E2E Tests"': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'My account – WooCommerce Core E2E Test Suite',
|
||||
'My account – WooCommerce E2E Tests',
|
||||
'body contains: my account welcome message': ( response ) =>
|
||||
response.body.includes(
|
||||
'From your account dashboard you can view'
|
||||
|
@ -75,11 +75,11 @@ export function myAccountOrders() {
|
|||
} );
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title is: "My account – WooCommerce Core E2E Test Suite"': (
|
||||
'title is: "My account – WooCommerce E2E Tests"': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'My account – WooCommerce Core E2E Test Suite',
|
||||
'My account – WooCommerce E2E Tests',
|
||||
"body contains: 'Orders' title": ( response ) =>
|
||||
response.body.includes( '>Orders</h1>' ),
|
||||
'footer contains: Built with WooCommerce': ( response ) =>
|
||||
|
@ -116,11 +116,11 @@ export function myAccountOrders() {
|
|||
);
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title is: "My account – WooCommerce Core E2E Test Suite"': (
|
||||
'title is: "My account – WooCommerce E2E Tests"': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'My account – WooCommerce Core E2E Test Suite',
|
||||
'My account – WooCommerce E2E Tests',
|
||||
"body contains: 'Order number' title": ( response ) =>
|
||||
response.body.includes( `${ my_account_order_id }</h1>` ),
|
||||
'footer contains: Built with WooCommerce': ( response ) =>
|
||||
|
|
|
@ -45,11 +45,11 @@ export function myAccount() {
|
|||
} );
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title is: "My account – WooCommerce Core E2E Test Suite"': (
|
||||
'title is: "My account – WooCommerce E2E Tests"': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'My account – WooCommerce Core E2E Test Suite',
|
||||
'My account – WooCommerce E2E Tests',
|
||||
"body contains: 'My account' title": ( response ) =>
|
||||
response.body.includes( '>My account</h1>' ),
|
||||
'footer contains: Built with WooCommerce': ( response ) =>
|
||||
|
|
|
@ -44,14 +44,14 @@ export function searchProduct() {
|
|||
);
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title matches: Search Results for {product_search_term} – WooCommerce Core E2E Test Suite':
|
||||
'title matches: Search Results for {product_search_term} – WooCommerce E2E Tests':
|
||||
( response ) => {
|
||||
const title_actual = response
|
||||
.html()
|
||||
.find( 'head title' )
|
||||
.text();
|
||||
const title_expected = new RegExp(
|
||||
`Search Results for .${ product_search_term }. – WooCommerce Core E2E Test Suite`
|
||||
`Search Results for .${ product_search_term }. – WooCommerce E2E Tests`
|
||||
);
|
||||
return title_actual.match( title_expected );
|
||||
},
|
||||
|
|
|
@ -36,11 +36,11 @@ export function shopPage() {
|
|||
} );
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title equals: Shop – WooCommerce Core E2E Test Suite': (
|
||||
'title equals: Shop – WooCommerce E2E Tests': (
|
||||
response
|
||||
) =>
|
||||
response.html().find( 'head title' ).text() ===
|
||||
'Shop – WooCommerce Core E2E Test Suite',
|
||||
'Shop – WooCommerce E2E Tests',
|
||||
'body contains: woocommerce-products-header': ( response ) =>
|
||||
response.body.includes(
|
||||
'<header class="woocommerce-products-header">'
|
||||
|
|
|
@ -42,7 +42,7 @@ export function singleProduct() {
|
|||
} );
|
||||
check( response, {
|
||||
'is status 200': ( r ) => r.status === 200,
|
||||
'title is: {product_url} – WooCommerce Core E2E Test Suite': (
|
||||
'title is: {product_url} – WooCommerce E2E Tests': (
|
||||
response
|
||||
) => {
|
||||
const title_actual = response
|
||||
|
@ -50,7 +50,7 @@ export function singleProduct() {
|
|||
.find( 'head title' )
|
||||
.text();
|
||||
const title_expected = new RegExp(
|
||||
`${ product_url } – WooCommerce Core E2E Test Suite`,
|
||||
`${ product_url } – WooCommerce E2E Tests`,
|
||||
'i'
|
||||
);
|
||||
return title_actual.match( title_expected );
|
||||
|
|
Loading…
Reference in New Issue