From 223c8a8528557b02b97a423b8a6b8f133a30038c Mon Sep 17 00:00:00 2001 From: carlosjr Date: Thu, 5 Nov 2020 15:58:02 +0100 Subject: [PATCH] stowaway test included + supplier contact refactor --- e2e/paths/05-ticket/12_descriptor.spec.js | 3 +-- e2e/paths/13-supplier/04_contact.spec.js | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/e2e/paths/05-ticket/12_descriptor.spec.js b/e2e/paths/05-ticket/12_descriptor.spec.js index 8e99ec060..0df914bab 100644 --- a/e2e/paths/05-ticket/12_descriptor.spec.js +++ b/e2e/paths/05-ticket/12_descriptor.spec.js @@ -103,8 +103,7 @@ describe('Ticket descriptor path', () => { expect(message.text).toBe('Data saved!'); }); - xit(`should check the state of the stowaway ticket is embarked`, async() => { - await page.wait(500); + it(`should check the state of the stowaway ticket is embarked`, async() => { const state = await page.waitToGetProperty(selectors.ticketDescriptor.stateLabelValue, 'innerText'); expect(state).toEqual('State Embarcando'); diff --git a/e2e/paths/13-supplier/04_contact.spec.js b/e2e/paths/13-supplier/04_contact.spec.js index 9a102cf93..2140ec81b 100644 --- a/e2e/paths/13-supplier/04_contact.spec.js +++ b/e2e/paths/13-supplier/04_contact.spec.js @@ -69,6 +69,10 @@ describe('Supplier contact path', () => { it(`should remove the created contact`, async() => { await page.waitToClick(selectors.supplierContact.thirdContactDeleteButton, 'value'); + const result = await page.countElement(selectors.supplierContact.anyContact); + + expect(result).toEqual(2); + await page.waitToClick(selectors.supplierContact.saveButton); const message = await page.waitForSnackbar();