#809 e2e item.regularize
This commit is contained in:
parent
295486c7ad
commit
c7421554f1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue