diff --git a/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts b/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts index ee7ea8307b6c6..b79446c1acbc7 100644 --- a/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts +++ b/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts @@ -199,7 +199,10 @@ describe('FO - Contact us : Send message from contact us page with customer logg it('should check that the confirmation mail is in mailbox', async function () { await testContext.addContextItem(this, 'testIdentifier', 'checkMail', baseContext); - expect(newMail.subject).to.contains(`[${global.INSTALL.SHOP_NAME}] Your message has been correctly sent`); + // Translated message looks like this 'Your message no. ct%thread_id% has been correctly sent (thread ID tc%thread_token%)' + // so we check the two parts that are not dynamic + expect(newMail.subject).to.contains(`[${global.INSTALL.SHOP_NAME}] Your message`); + expect(newMail.subject).to.contains('has been correctly sent'); }); }); diff --git a/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts b/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts index e29956e41624a..c272e9f11011d 100644 --- a/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts +++ b/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts @@ -233,7 +233,10 @@ describe('FO - Contact us : Send message from contact us page with customer not it('should check that the confirmation mail is in mailbox', async function () { await testContext.addContextItem(this, 'testIdentifier', 'checkMail', baseContext); - expect(newMail.subject).to.contains(`[${global.INSTALL.SHOP_NAME}] Your message has been correctly sent`); + // Translated message looks like this 'Your message no. ct%thread_id% has been correctly sent (thread ID tc%thread_token%)' + // so we check the two parts that are not dynamic + expect(newMail.subject).to.contains(`[${global.INSTALL.SHOP_NAME}] Your message`); + expect(newMail.subject).to.contains('has been correctly sent'); }); }); diff --git a/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/03_selectAddress.ts b/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/03_selectAddress.ts index ba3deb1e10b0f..97c880185be5d 100644 --- a/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/03_selectAddress.ts +++ b/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/03_selectAddress.ts @@ -112,6 +112,6 @@ describe('FO - Checkout - Addresses: Select address', async () => { await testContext.addContextItem(this, 'testIdentifier', 'checkNoPaymentMethodAvailable', baseContext); const alertMessage = await checkoutPage.getNoPaymentAvailableMessage(page); - expect(alertMessage).to.equal('Unfortunately, there are no payment method available.'); + expect(alertMessage).to.equal('Unfortunately, there is no payment method available.'); }); }); diff --git a/tests/UI/campaigns/functional/FO/hummingbird/05_contactUs/02_sendMessageWithCustomer.ts b/tests/UI/campaigns/functional/FO/hummingbird/05_contactUs/02_sendMessageWithCustomer.ts index 32f36a36ac94d..5da80ecb817d6 100644 --- a/tests/UI/campaigns/functional/FO/hummingbird/05_contactUs/02_sendMessageWithCustomer.ts +++ b/tests/UI/campaigns/functional/FO/hummingbird/05_contactUs/02_sendMessageWithCustomer.ts @@ -206,7 +206,10 @@ describe('FO - Contact us : Send message from contact us page with customer logg it('should check that the confirmation mail is in mailbox', async function () { await testContext.addContextItem(this, 'testIdentifier', 'checkMail', baseContext); - expect(newMail.subject).to.contains(`[${global.INSTALL.SHOP_NAME}] Your message has been correctly sent`); + // Translated message looks like this 'Your message no. ct%thread_id% has been correctly sent (thread ID tc%thread_token%)' + // so we check the two parts that are not dynamic + expect(newMail.subject).to.contains(`[${global.INSTALL.SHOP_NAME}] Your message`); + expect(newMail.subject).to.contains('has been correctly sent'); }); }); diff --git a/tests/UI/campaigns/functional/FO/hummingbird/05_contactUs/03_sendMessageAsAnonymous.ts b/tests/UI/campaigns/functional/FO/hummingbird/05_contactUs/03_sendMessageAsAnonymous.ts index 8e746f8b7502b..5e7f9eb138be7 100644 --- a/tests/UI/campaigns/functional/FO/hummingbird/05_contactUs/03_sendMessageAsAnonymous.ts +++ b/tests/UI/campaigns/functional/FO/hummingbird/05_contactUs/03_sendMessageAsAnonymous.ts @@ -238,7 +238,10 @@ describe('FO - Contact us : Send message from contact us page with customer not it('should check that the confirmation mail is in mailbox', async function () { await testContext.addContextItem(this, 'testIdentifier', 'checkMail', baseContext); - expect(newMail.subject).to.contains(`[${global.INSTALL.SHOP_NAME}] Your message has been correctly sent`); + // Translated message looks like this 'Your message no. ct%thread_id% has been correctly sent (thread ID tc%thread_token%)' + // so we check the two parts that are not dynamic + expect(newMail.subject).to.contains(`[${global.INSTALL.SHOP_NAME}] Your message`); + expect(newMail.subject).to.contains('has been correctly sent'); }); }); diff --git a/tests/UI/campaigns/functional/FO/hummingbird/11_checkout/02_addresses/03_selectAddress.ts b/tests/UI/campaigns/functional/FO/hummingbird/11_checkout/02_addresses/03_selectAddress.ts index e65de289c989f..2308c2975ca6e 100644 --- a/tests/UI/campaigns/functional/FO/hummingbird/11_checkout/02_addresses/03_selectAddress.ts +++ b/tests/UI/campaigns/functional/FO/hummingbird/11_checkout/02_addresses/03_selectAddress.ts @@ -123,7 +123,7 @@ describe('FO - Checkout - Addresses: Select address', async () => { await testContext.addContextItem(this, 'testIdentifier', 'checkNoPaymentMethodAvailable', baseContext); const alertMessage = await checkoutPage.getNoPaymentAvailableMessage(page); - expect(alertMessage).to.equal('Unfortunately, there are no payment method available.'); + expect(alertMessage).to.equal('Unfortunately, there is no payment method available.'); }); }); diff --git a/tests/UI/pages/BO/modules/psGdpr/tabDataConsent.ts b/tests/UI/pages/BO/modules/psGdpr/tabDataConsent.ts index c565ceba618c3..37525378c7674 100644 --- a/tests/UI/pages/BO/modules/psGdpr/tabDataConsent.ts +++ b/tests/UI/pages/BO/modules/psGdpr/tabDataConsent.ts @@ -34,7 +34,7 @@ class PsGdprTabDataConsentPage extends ModuleConfiguration { constructor() { super(); - this.saveFormMessage = 'Saved with success !'; + this.saveFormMessage = 'Saved with success!'; this.checkboxCreationForm = (status: boolean) => `#switch_account_creation_${status ? 'on' : 'off'}`; this.messageCreationForm = (idLang: number) => `#psgdpr_creation_form_${idLang}_ifr`; diff --git a/tests/UI/pages/FO/classic/myAccount/returnDetails.ts b/tests/UI/pages/FO/classic/myAccount/returnDetails.ts index 21f311ddb624a..1557fc57b28ff 100644 --- a/tests/UI/pages/FO/classic/myAccount/returnDetails.ts +++ b/tests/UI/pages/FO/classic/myAccount/returnDetails.ts @@ -27,7 +27,7 @@ class ReturnDetails extends FOBasePage { constructor(theme: string = 'classic') { super(theme); - this.pageTitle = 'Return details'; + this.pageTitle = 'Return Details'; this.errorMessage = 'You must wait for confirmation before returning any merchandise.'; this.orderReturnCardBlock = 'We have logged your return request. Your package must be returned to us within 14 days' + ' of receiving your order. The current status of your merchandise return is:';