From c7421554f1b150decbf7bc6ae65c6218e00475ca Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Wed, 14 Nov 2018 18:55:40 +0100 Subject: [PATCH] #809 e2e item.regularize --- .../item-module/09_regularize_item.spec.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/e2e/paths/item-module/09_regularize_item.spec.js b/e2e/paths/item-module/09_regularize_item.spec.js index 34607ae6c..c076a3e55 100644 --- a/e2e/paths/item-module/09_regularize_item.spec.js +++ b/e2e/paths/item-module/09_regularize_item.spec.js @@ -17,10 +17,10 @@ describe('Item regularize path', () => { expect(url.hash).toEqual('#!/item/index'); }); - it('should search for the item Gem of Time', async () => { + it('should search for the item Mjolnir', async () => { const resultCount = await nightmare .wait(selectors.itemsIndex.searchResult) - .type(selectors.itemsIndex.searchItemInput, 'Gem of Time') + .type(selectors.itemsIndex.searchItemInput, 'Mjolnir') .click(selectors.itemsIndex.searchButton) .waitForNumberOfElements(selectors.itemsIndex.searchResult, 1) .countElement(selectors.itemsIndex.searchResult); @@ -30,7 +30,7 @@ describe('Item regularize path', () => { it(`should click on the search result to access to the item tax`, async () => { const url = await nightmare - .waitForTextInElement(selectors.itemsIndex.searchResult, 'Gem of Time') + .waitForTextInElement(selectors.itemsIndex.searchResult, 'Mjolnir') .waitToClick(selectors.itemsIndex.searchResult) .waitForURL('/summary') .url(); @@ -86,10 +86,10 @@ describe('Item regularize path', () => { it(`should check the ticket sale quantity is showing a negative value`, async () => { const result = await nightmare - .waitForTextInElement(selectors.ticketSummary.firstSaleQuantity, '-17') + .waitForTextInElement(selectors.ticketSummary.firstSaleQuantity, '-100') .getInnerText(selectors.ticketSummary.firstSaleQuantity); - expect(result).toContain('-17'); + expect(result).toContain('-100'); }); it(`should check the ticket sale discount is 100%`, async () => { @@ -110,10 +110,10 @@ describe('Item regularize path', () => { expect(url.hash).toEqual('#!/item/index'); }); - it('should search for the item Gem of Time once again', async () => { + it('should search for the item Mjolnir once again', async () => { const resultCount = await nightmare .wait(selectors.itemsIndex.searchResult) - .type(selectors.itemsIndex.searchItemInput, 'Gem of Time') + .type(selectors.itemsIndex.searchItemInput, 'Mjolnir') .click(selectors.itemsIndex.searchButton) .waitForNumberOfElements(selectors.itemsIndex.searchResult, 1) .countElement(selectors.itemsIndex.searchResult); @@ -123,7 +123,7 @@ describe('Item regularize path', () => { it(`should click on the search result to access to the item tax`, async () => { const url = await nightmare - .waitForTextInElement(selectors.itemsIndex.searchResult, 'Gem of Time') + .waitForTextInElement(selectors.itemsIndex.searchResult, 'Mjolnir') .waitToClick(selectors.itemsIndex.searchResult) .waitForURL('/summary') .url(); @@ -179,7 +179,7 @@ describe('Item regularize path', () => { it(`should check the ticket contains now two sales`, async () => { const result = await nightmare - .waitForTextInElement(selectors.ticketSummary.firstSaleQuantity, '-17') + .waitForTextInElement(selectors.ticketSummary.firstSaleQuantity, '-100') .countElement(selectors.ticketSummary.sale); expect(result).toEqual(2);