From e66a3f80bbed2014c935d3d6a9db34faca7ae120 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Wed, 23 Jun 2021 13:23:07 +0200 Subject: [PATCH] e2e amends --- e2e/helpers/selectors.js | 6 +++--- e2e/paths/02-client/04_edit_billing_data.spec.js | 5 ++--- e2e/paths/07-order/02_basic_data.spec.js | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index f65ebc95d2..eefe3e10a9 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -572,11 +572,11 @@ export default { firstSaleZoomedImage: 'body > div > div > img', firstSaleQuantity: 'vn-ticket-sale [ng-model="sale.quantity"]', firstSaleQuantityCell: 'vn-ticket-sale vn-tr:nth-child(1) > vn-td-editable:nth-child(6)', - firstSalePrice: 'vn-ticket-sale vn-table vn-tr:nth-child(1) > vn-td:nth-child(9) > span', + firstSalePrice: 'vn-ticket-sale vn-table vn-tr:nth-child(1) > vn-td:nth-child(8) > span', firstSalePriceInput: '.vn-popover.shown input[ng-model="$ctrl.field"]', - firstSaleDiscount: 'vn-ticket-sale vn-table vn-tr:nth-child(1) > vn-td:nth-child(10) > span', + firstSaleDiscount: 'vn-ticket-sale vn-table vn-tr:nth-child(1) > vn-td:nth-child(9) > span', firstSaleDiscountInput: '.vn-popover.shown [ng-model="$ctrl.field"]', - firstSaleImport: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(11)', + firstSaleImport: 'vn-ticket-sale:nth-child(1) vn-td:nth-child(10)', firstSaleReservedIcon: 'vn-ticket-sale vn-tr:nth-child(1) > vn-td:nth-child(2) > vn-icon:nth-child(3)', firstSaleColour: 'vn-ticket-sale vn-tr:nth-child(1) vn-fetched-tags section', firstSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(1) vn-check[ng-model="sale.checked"]', diff --git a/e2e/paths/02-client/04_edit_billing_data.spec.js b/e2e/paths/02-client/04_edit_billing_data.spec.js index 24ee3c29ae..208345457d 100644 --- a/e2e/paths/02-client/04_edit_billing_data.spec.js +++ b/e2e/paths/02-client/04_edit_billing_data.spec.js @@ -31,8 +31,7 @@ describe('Client Edit billing data path', () => { expect(message.text).toContain('That payment method requires an IBAN'); }); - // 2256: Windows (hidden mode): Entity code doesn't get the focus, '9999' is written in entity name. - xit(`should create a new BIC code`, async() => { + it(`should create a new BIC code`, async() => { await page.waitToClick(selectors.clientBillingData.newBankEntityButton); await page.write(selectors.clientBillingData.newBankEntityName, 'Gotham City Bank'); await page.write(selectors.clientBillingData.newBankEntityCode, '9999'); @@ -44,7 +43,7 @@ describe('Client Edit billing data path', () => { expect(newcode).toEqual('GTHMCT Gotham City Bank'); }); - xit(`should confirm the IBAN pay method was sucessfully saved`, async() => { + it(`should confirm the IBAN pay method was sucessfully saved`, async() => { const payMethod = await page.waitToGetProperty(selectors.clientBillingData.payMethod, 'value'); expect(payMethod).toEqual('PayMethod with IBAN'); diff --git a/e2e/paths/07-order/02_basic_data.spec.js b/e2e/paths/07-order/02_basic_data.spec.js index 6acf48f780..17ff5d7a62 100644 --- a/e2e/paths/07-order/02_basic_data.spec.js +++ b/e2e/paths/07-order/02_basic_data.spec.js @@ -89,7 +89,7 @@ describe('Order edit basic data path', () => { const result = await page .waitToGetProperty(selectors.orderBasicData.client, 'value'); - expect(result).toEqual('104: Tony Stark'); + expect(result).toEqual('1104: Tony Stark'); }); it('should now confirm the agency have been edited', async() => {