Skip to content

Commit

Permalink
Merge pull request PrestaShop#34883 from Progi1984/fixNightly20231220
Browse files Browse the repository at this point in the history
Nightly : Fixed error after PrestaShop#34833
  • Loading branch information
boubkerbribri authored Dec 21, 2023
2 parents 41b1635 + 249ff95 commit a141b79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ describe('BO - Orders - View and edit order : Check and edit customer block', as
it('should select another shipping address and check it', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'selectAnotherShippingAddress', baseContext);

const addressToSelect = `${addressID}- ${secondAddressData.address} ${secondAddressData.secondAddress} `
+ `${secondAddressData.postalCode} ${secondAddressData.city}`;
const addressToSelect = `#${addressID} ${secondAddressData.alias} - ${secondAddressData.address} `
+ `${secondAddressData.secondAddress} ${secondAddressData.postalCode} ${secondAddressData.city}`;

const alertMessage = await orderPageCustomerBlock.selectAnotherShippingAddress(page, addressToSelect);
expect(alertMessage).to.contains(orderPageCustomerBlock.successfulUpdateMessage);
Expand Down Expand Up @@ -350,8 +350,8 @@ describe('BO - Orders - View and edit order : Check and edit customer block', as
it('should select another invoice address and check it', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'selectAnotherInvoiceAddress', baseContext);

const addressToSelect = `${addressID}- ${secondAddressData.address} ${secondAddressData.secondAddress} `
+ `${secondAddressData.postalCode} ${secondAddressData.city}`;
const addressToSelect = `#${addressID} ${secondAddressData.alias} - ${secondAddressData.address} `
+ `${secondAddressData.secondAddress} ${secondAddressData.postalCode} ${secondAddressData.city}`;

const alertMessage = await orderPageCustomerBlock.selectAnotherInvoiceAddress(page, addressToSelect);
expect(alertMessage).to.contains(orderPageCustomerBlock.successfulUpdateMessage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ describe('BO - Orders - View and edit order: Check invoice', async () => {
it('should change the \'Invoice address\'', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'changeBillingAddress1', baseContext);

const addressToSelect = `${Addresses.third.id}- ${Addresses.third.address} ${Addresses.third.secondAddress} `
+ `${Addresses.third.postalCode} ${Addresses.third.city}`;
const addressToSelect = `#${Addresses.third.id} ${Addresses.third.alias} - ${Addresses.third.address} `
+ `${Addresses.third.secondAddress} ${Addresses.third.postalCode} ${Addresses.third.city}`;

const alertMessage = await orderPageCustomerBlock.selectAnotherInvoiceAddress(page, addressToSelect);
expect(alertMessage).to.contains(orderPageCustomerBlock.successfulUpdateMessage);
Expand Down Expand Up @@ -1236,8 +1236,8 @@ describe('BO - Orders - View and edit order: Check invoice', async () => {
it('should change the \'Shipping address\'', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'changeBillingAddress2', baseContext);

const addressToSelect = `${Addresses.third.id}- ${Addresses.third.address} ${Addresses.third.secondAddress} `
+ `${Addresses.third.postalCode} ${Addresses.third.city}`;
const addressToSelect = `#${Addresses.third.id} ${Addresses.third.alias} - ${Addresses.third.address} `
+ `${Addresses.third.secondAddress} ${Addresses.third.postalCode} ${Addresses.third.city}`;

const alertMessage = await orderPageCustomerBlock.selectAnotherShippingAddress(page, addressToSelect);
expect(alertMessage).to.contains(orderPageCustomerBlock.successfulUpdateMessage);
Expand Down Expand Up @@ -1272,8 +1272,8 @@ describe('BO - Orders - View and edit order: Check invoice', async () => {
it('should change the \'Invoice address\'', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'changeBillingAddress3', baseContext);

const addressToSelect = `${Addresses.third.id}- ${Addresses.third.address} ${Addresses.third.secondAddress} `
+ `${Addresses.third.postalCode} ${Addresses.third.city}`;
const addressToSelect = `#${Addresses.third.id} ${Addresses.third.alias} - ${Addresses.third.address} `
+ `${Addresses.third.secondAddress} ${Addresses.third.postalCode} ${Addresses.third.city}`;

const alertMessage = await orderPageCustomerBlock.selectAnotherInvoiceAddress(page, addressToSelect);
expect(alertMessage).to.contains(orderPageCustomerBlock.successfulUpdateMessage);
Expand Down

0 comments on commit a141b79

Please sign in to comment.