From 46899ee6ee3a526bda6b6c8be9b456702c9f8da4 Mon Sep 17 00:00:00 2001 From: shashwata Date: Fri, 16 Feb 2024 12:49:32 +0600 Subject: [PATCH] updated woo success locator --- tests/pw/pages/selectors.ts | 12 ++++++------ tests/pw/utils/data.json | 9 --------- 2 files changed, 6 insertions(+), 15 deletions(-) delete mode 100644 tests/pw/utils/data.json diff --git a/tests/pw/pages/selectors.ts b/tests/pw/pages/selectors.ts index 3838f338b9..c94315c58c 100644 --- a/tests/pw/pages/selectors.ts +++ b/tests/pw/pages/selectors.ts @@ -4056,7 +4056,7 @@ export const selector = { approveThisQuote: 'button[name="approved_by_vendor_button"]', convertToOrder: 'button[name="dokan_convert_to_order_customer"]', - message: '.woocommerce .is-success', + message: '.woocommerce-message', }, }, @@ -5009,7 +5009,7 @@ export const selector = { addBooking: 'input[value="Add Booking"][type="submit"]', - successMessage: '.woocommerce .is-success', + successMessage: '.woocommerce-message', }, // Manage Booking @@ -6314,7 +6314,7 @@ export const selector = { billingEmailAddress: '#billing_email', billingSaveAddress: '//button[@name="save_address"]', // Success Message - successMessage: '.woocommerce .is-success', + successMessage: '.woocommerce-message', }, // Shipping Address @@ -6338,7 +6338,7 @@ export const selector = { shippingSaveAddress: '//button[@name="save_address"]', // Success Message - successMessage: '.woocommerce .is-success', + successMessage: '.woocommerce-message', }, }, @@ -7154,7 +7154,7 @@ export const selector = { updateQuote: 'button[name="dokan_update_quote"]', - message: '.woocommerce .is-success', + message: '.woocommerce-message', }, }, }, @@ -7465,7 +7465,7 @@ export const selector = { }, cWooSelector: { - wooCommerceSuccessMessage: '.woocommerce .is-success', + wooCommerceSuccessMessage: '.woocommerce-message', wooCommerceError: '.woocommerce .is-error', wooCommerceInfo: '.woocommerce .is-info', wooCommerceNoriceBanner: 'div.wc-block-components-notice-banner', diff --git a/tests/pw/utils/data.json b/tests/pw/utils/data.json deleted file mode 100644 index ee99d07aa0..0000000000 --- a/tests/pw/utils/data.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "SERVER_URL": "", - "CUSTOMER_ID": "", - "VENDOR_ID": "", - "VENDOR2_ID": "", - "PRODUCT_ID": "", - "V2_PRODUCT_ID": "", - "HPOS": "" -}