#809 e2e item.regularize
This commit is contained in:
parent
8bd91f3039
commit
4b2b16a324
|
@ -1,7 +1,7 @@
|
|||
import selectors from '../../helpers/selectors.js';
|
||||
import createNightmare from '../../helpers/nightmare';
|
||||
|
||||
xdescribe('Item regularize path', () => {
|
||||
describe('Item regularize path', () => {
|
||||
const nightmare = createNightmare();
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
|
@ -63,10 +63,10 @@ xdescribe('Item regularize path', () => {
|
|||
expect(url.hash).toEqual('#!/ticket/index');
|
||||
});
|
||||
|
||||
it('should search for the ticket with id 22', async () => {
|
||||
it('should search for the ticket with alias missing', async () => {
|
||||
const result = await nightmare
|
||||
.wait(selectors.ticketsIndex.searchTicketInput)
|
||||
.type(selectors.ticketsIndex.searchTicketInput, 'id:22')
|
||||
.type(selectors.ticketsIndex.searchTicketInput, 'missing')
|
||||
.click(selectors.ticketsIndex.searchButton)
|
||||
.waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
||||
.countElement(selectors.ticketsIndex.searchResult);
|
||||
|
@ -76,7 +76,7 @@ xdescribe('Item regularize path', () => {
|
|||
|
||||
it(`should click on the search result to access to the ticket summary`, async () => {
|
||||
const url = await nightmare
|
||||
.waitForTextInElement(selectors.ticketsIndex.searchResult, '22')
|
||||
.waitForTextInElement(selectors.ticketsIndex.searchResult, 'Missing')
|
||||
.waitToClick(selectors.ticketsIndex.searchResult)
|
||||
.waitForURL('/summary')
|
||||
.url();
|
||||
|
|
|
@ -74,7 +74,7 @@ describe('Ticket Edit sale path', () => {
|
|||
expect(result).toEqual(1);
|
||||
});
|
||||
|
||||
it(`should click on the search result to access to the ticket Sale`, async () => {
|
||||
it(`should now click on the search result to access to the ticket Sale`, async () => {
|
||||
const url = await nightmare
|
||||
.waitForTextInElement(selectors.ticketsIndex.searchResult, 'address 21')
|
||||
.waitToClick(selectors.ticketsIndex.searchResult)
|
||||
|
@ -431,7 +431,7 @@ describe('Ticket Edit sale path', () => {
|
|||
it('should search for a specific created ticket', async () => {
|
||||
const result = await nightmare
|
||||
.wait(selectors.ticketsIndex.searchResult)
|
||||
.type(selectors.ticketsIndex.searchTicketInput, 'id:22')
|
||||
.type(selectors.ticketsIndex.searchTicketInput, 'nickname:(address 21) stateFk:2')
|
||||
.click(selectors.ticketsIndex.searchButton)
|
||||
.waitForNumberOfElements(selectors.ticketsIndex.searchResult, 1)
|
||||
.countElement(selectors.ticketsIndex.searchResult);
|
||||
|
@ -439,7 +439,7 @@ describe('Ticket Edit sale path', () => {
|
|||
expect(result).toEqual(1);
|
||||
});
|
||||
|
||||
it(`should click on the search result to access to the ticket Sale`, async () => {
|
||||
it(`should click on the search result to access to the ticket Sale once more`, async () => {
|
||||
const url = await nightmare
|
||||
.waitForTextInElement(selectors.ticketsIndex.searchResult, 'address 21')
|
||||
.waitToClick(selectors.ticketsIndex.searchResult)
|
||||
|
@ -616,7 +616,7 @@ describe('Ticket Edit sale path', () => {
|
|||
expect(result).toEqual(1);
|
||||
});
|
||||
|
||||
it(`should click on the search result to access to the ticket Sale`, async () => {
|
||||
it(`should click on the search result to access to the ticket Sale once again`, async () => {
|
||||
const url = await nightmare
|
||||
.waitForTextInElement(selectors.ticketsIndex.searchResult, 'address 21')
|
||||
.waitToClick(selectors.ticketsIndex.searchResult)
|
||||
|
|
Loading…
Reference in New Issue