From 6e0c3423110687b87717e963fa17582c4a4b0fa3 Mon Sep 17 00:00:00 2001 From: Gerard Date: Thu, 28 Feb 2019 15:39:12 +0100 Subject: [PATCH 1/2] regularize test fixed --- e2e/paths/item-module/09_regularize_item.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/paths/item-module/09_regularize_item.spec.js b/e2e/paths/item-module/09_regularize_item.spec.js index 1294abf1e..e7702cb14 100644 --- a/e2e/paths/item-module/09_regularize_item.spec.js +++ b/e2e/paths/item-module/09_regularize_item.spec.js @@ -176,7 +176,7 @@ describe('Item regularize path', () => { it('should search for the ticket with id 23 once again', async() => { const result = await nightmare - .write(selectors.ticketsIndex.searchTicketInput, 'id:23') + .write(selectors.ticketsIndex.searchTicketInput, 'id:24') .waitToClick(selectors.ticketsIndex.searchButton) .waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1) .countElement(selectors.ticketsIndex.searchResult); From 6a706b3e22f6e3bbf5563bbee902b35ca6b9af29 Mon Sep 17 00:00:00 2001 From: Gerard Date: Thu, 28 Feb 2019 16:25:09 +0100 Subject: [PATCH 2/2] e2e now navigates to the right ticket --- e2e/paths/item-module/09_regularize_item.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/paths/item-module/09_regularize_item.spec.js b/e2e/paths/item-module/09_regularize_item.spec.js index e7702cb14..98fe0859a 100644 --- a/e2e/paths/item-module/09_regularize_item.spec.js +++ b/e2e/paths/item-module/09_regularize_item.spec.js @@ -186,7 +186,7 @@ describe('Item regularize path', () => { it(`should now click on the search result to access to the ticket summary`, async() => { const url = await nightmare - .waitForTextInElement(selectors.ticketsIndex.searchResult, '23') + .waitForTextInElement(selectors.ticketsIndex.searchResult, '24') .waitToClick(selectors.ticketsIndex.searchResult) .waitForURL('/summary') .parsedUrl();