update extension name countSearchResult to be countElement
This commit is contained in:
parent
fa8585e92d
commit
8b7d2062c5
|
@ -26,7 +26,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Carol Danvers')
|
.type(selectors.clientsIndex.searchClientInput, 'Carol Danvers')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 0)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 0)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(0);
|
expect(result).toEqual(0);
|
||||||
});
|
});
|
||||||
|
@ -127,7 +127,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Carol Danvers')
|
.type(selectors.clientsIndex.searchClientInput, 'Carol Danvers')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Bruce Wayne')
|
.type(selectors.clientsIndex.searchClientInput, 'Bruce Wayne')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Bruce Banner')
|
.type(selectors.clientsIndex.searchClientInput, 'Bruce Banner')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Bruce Banner')
|
.type(selectors.clientsIndex.searchClientInput, 'Bruce Banner')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Bruce Banner')
|
.type(selectors.clientsIndex.searchClientInput, 'Bruce Banner')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Bruce Banner')
|
.type(selectors.clientsIndex.searchClientInput, 'Bruce Banner')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Bruce Banner')
|
.type(selectors.clientsIndex.searchClientInput, 'Bruce Banner')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Ororo Munroe')
|
.type(selectors.clientsIndex.searchClientInput, 'Ororo Munroe')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -29,7 +29,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
@ -119,7 +119,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
@ -232,7 +232,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
@ -308,7 +308,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
@ -421,7 +421,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Client', () => {
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countElement(selectors.clientsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('Item', () => {
|
||||||
.type(selectors.itemsIndex.searchItemInput, 'Gem of Time')
|
.type(selectors.itemsIndex.searchItemInput, 'Gem of Time')
|
||||||
.click(selectors.itemsIndex.searchButton)
|
.click(selectors.itemsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.itemsIndex.searchResult)
|
.countElement(selectors.itemsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('Item', () => {
|
||||||
.type(selectors.itemsIndex.searchItemInput, 'Gem of Mind')
|
.type(selectors.itemsIndex.searchItemInput, 'Gem of Mind')
|
||||||
.click(selectors.itemsIndex.searchButton)
|
.click(selectors.itemsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.itemsIndex.searchResult)
|
.countElement(selectors.itemsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('Item', () => {
|
||||||
.type(selectors.itemsIndex.searchItemInput, 'Gem of Time')
|
.type(selectors.itemsIndex.searchItemInput, 'Gem of Time')
|
||||||
.click(selectors.itemsIndex.searchButton)
|
.click(selectors.itemsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.itemsIndex.searchResult)
|
.countElement(selectors.itemsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('Item', () => {
|
||||||
.type(selectors.itemsIndex.searchItemInput, 'Gem of Time')
|
.type(selectors.itemsIndex.searchItemInput, 'Gem of Time')
|
||||||
.click(selectors.itemsIndex.searchButton)
|
.click(selectors.itemsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.itemsIndex.searchResult)
|
.countElement(selectors.itemsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('Item', () => {
|
||||||
.type(selectors.itemsIndex.searchItemInput, 'Gem of Time')
|
.type(selectors.itemsIndex.searchItemInput, 'Gem of Time')
|
||||||
.click(selectors.itemsIndex.searchButton)
|
.click(selectors.itemsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.itemsIndex.searchResult)
|
.countElement(selectors.itemsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('Item', () => {
|
||||||
.type(selectors.itemsIndex.searchItemInput, 'Mjolnir')
|
.type(selectors.itemsIndex.searchItemInput, 'Mjolnir')
|
||||||
.click(selectors.itemsIndex.searchButton)
|
.click(selectors.itemsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.itemsIndex.searchResult)
|
.countElement(selectors.itemsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('Item', () => {
|
||||||
.type(selectors.itemsIndex.searchItemInput, 'Gem of Time')
|
.type(selectors.itemsIndex.searchItemInput, 'Gem of Time')
|
||||||
.click(selectors.itemsIndex.searchButton)
|
.click(selectors.itemsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.itemsIndex.searchResult)
|
.countElement(selectors.itemsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -25,7 +25,7 @@ describe('Item', () => {
|
||||||
.type(selectors.itemsIndex.searchItemInput, 'Infinity Gauntlet')
|
.type(selectors.itemsIndex.searchItemInput, 'Infinity Gauntlet')
|
||||||
.click(selectors.itemsIndex.searchButton)
|
.click(selectors.itemsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 0)
|
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 0)
|
||||||
.countSearchResults(selectors.itemsIndex.searchResult)
|
.countElement(selectors.itemsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(0);
|
expect(result).toEqual(0);
|
||||||
});
|
});
|
||||||
|
@ -120,7 +120,7 @@ describe('Item', () => {
|
||||||
.type(selectors.itemsIndex.searchItemInput, 'Infinity Gauntlet')
|
.type(selectors.itemsIndex.searchItemInput, 'Infinity Gauntlet')
|
||||||
.click(selectors.itemsIndex.searchButton)
|
.click(selectors.itemsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.itemsIndex.searchResult)
|
.countElement(selectors.itemsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
@ -145,7 +145,7 @@ describe('Item', () => {
|
||||||
.type(selectors.itemsIndex.searchItemInput, 'Infinity Gauntlet')
|
.type(selectors.itemsIndex.searchItemInput, 'Infinity Gauntlet')
|
||||||
.click(selectors.itemsIndex.searchButton)
|
.click(selectors.itemsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 2)
|
.waitForNumberOfElements(selectors.itemsIndex.searchResult, 2)
|
||||||
.countSearchResults(selectors.itemsIndex.searchResult)
|
.countElement(selectors.itemsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(2);
|
expect(result).toEqual(2);
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('Ticket', () => {
|
||||||
.type(selectors.ticketsIndex.searchTicketInput, 'id:1')
|
.type(selectors.ticketsIndex.searchTicketInput, 'id:1')
|
||||||
.click(selectors.ticketsIndex.searchButton)
|
.click(selectors.ticketsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.ticketsIndex.searchResult)
|
.countElement(selectors.ticketsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('Ticket', () => {
|
||||||
.type(selectors.ticketsIndex.searchTicketInput, 'id:1')
|
.type(selectors.ticketsIndex.searchTicketInput, 'id:1')
|
||||||
.click(selectors.ticketsIndex.searchButton)
|
.click(selectors.ticketsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.ticketsIndex.searchResult)
|
.countElement(selectors.ticketsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Ticket', () => {
|
||||||
.type(selectors.ticketsIndex.searchTicketInput, 'id:1')
|
.type(selectors.ticketsIndex.searchTicketInput, 'id:1')
|
||||||
.click(selectors.ticketsIndex.searchButton)
|
.click(selectors.ticketsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.ticketsIndex.searchResult)
|
.countElement(selectors.ticketsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
// .type(selectors.ticketsIndex.searchTicketInput, 'id:1')
|
// .type(selectors.ticketsIndex.searchTicketInput, 'id:1')
|
||||||
// .click(selectors.ticketsIndex.searchButton)
|
// .click(selectors.ticketsIndex.searchButton)
|
||||||
// .waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
// .waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
||||||
// .countSearchResults(selectors.ticketsIndex.searchResult)
|
// .countElement(selectors.ticketsIndex.searchResult)
|
||||||
// .then(result => {
|
// .then(result => {
|
||||||
// expect(result).toEqual(1);
|
// expect(result).toEqual(1);
|
||||||
// });
|
// });
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('Ticket', () => {
|
||||||
.type(selectors.ticketsIndex.searchTicketInput, 'id:1')
|
.type(selectors.ticketsIndex.searchTicketInput, 'id:1')
|
||||||
.click(selectors.ticketsIndex.searchButton)
|
.click(selectors.ticketsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.ticketsIndex.searchResult)
|
.countElement(selectors.ticketsIndex.searchResult)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
expect(result).toEqual(1);
|
expect(result).toEqual(1);
|
||||||
});
|
});
|
||||||
|
@ -77,7 +77,7 @@ describe('Ticket', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should access to the create state view by clicking the create floating button', () => {
|
it('should again access to the create state view by clicking the create floating button', () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.click(selectors.ticketTracking.createStateButton)
|
.click(selectors.ticketTracking.createStateButton)
|
||||||
.wait(selectors.createStateView.stateInput)
|
.wait(selectors.createStateView.stateInput)
|
||||||
|
|
Loading…
Reference in New Issue