mini refactor on e2e paths to show module on first describe

This commit is contained in:
Carlos Jimenez 2018-04-05 08:55:47 +02:00
parent e1495c652d
commit 694543a2da
25 changed files with 2537 additions and 2489 deletions

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors';
import createNightmare from '../../helpers/helpers';
describe('create client path', () => {
describe('Client', () => {
describe('create path', () => {
let nightmare = createNightmare();
beforeAll(() => {
@ -111,4 +112,5 @@ describe('create client path', () => {
expect(result).toEqual(1);
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('Edit basicData path', () => {
describe('Client', () => {
describe('Edit basicData path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -127,4 +128,5 @@ describe('Edit basicData path', () => {
expect(result).toEqual('Metropolis newspaper');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('Edit fiscalData path', () => {
describe('Client', () => {
describe('Edit fiscalData path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -287,4 +288,5 @@ describe('Edit fiscalData path', () => {
expect(value).toBeTruthy();
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('Edit pay method path', () => {
describe('Client', () => {
describe('Edit pay method path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -119,4 +120,5 @@ describe('Edit pay method path', () => {
expect(value).toBeFalsy();
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('Add address path', () => {
describe('Client', () => {
describe('Add address path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -125,4 +126,5 @@ describe('Add address path', () => {
expect(result).toContain('Error:');
});
});
});
});

View File

@ -1,6 +1,7 @@
// import selectors from '../../helpers/selectors.js';
// import createNightmare from '../../helpers/helpers';
// describe('Client', () => {
// describe('Add address notes path', () => {
// const nightmare = createNightmare();
@ -94,4 +95,5 @@
// });
// });
// });
// });

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('Edit web access path', () => {
describe('Client', () => {
describe('Edit web access path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -75,4 +76,5 @@ describe('Edit web access path', () => {
expect(result).toEqual('Hulk');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('Add notes path', () => {
describe('Client', () => {
describe('Add notes path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -73,4 +74,5 @@ describe('Add notes path', () => {
expect(value).toEqual('Meeting with Black Widow 21st 9am');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('Add credit path', () => {
describe('Client', () => {
describe('Add credit path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -75,4 +76,5 @@ describe('Add credit path', () => {
expect(value).toContain('developer');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('Add greuge path', () => {
describe('Client', () => {
describe('Add greuge path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -87,4 +88,5 @@ describe('Add greuge path', () => {
expect(value).toContain('Diff');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('mandate path', () => {
describe('Client', () => {
describe('mandate path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -55,4 +56,5 @@ describe('mandate path', () => {
expect(value).toContain('CORE');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('lock verified data path', () => {
describe('Client', () => {
describe('lock verified data path', () => {
const nightmare = createNightmare();
describe('as salesPerson', () => {
@ -469,4 +470,5 @@ describe('lock verified data path', () => {
});
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('invoice path', () => {
describe('Client', () => {
describe('invoice path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -54,4 +55,5 @@ describe('invoice path', () => {
expect(value).toContain('350.50');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('Item summary path', () => {
describe('Item', () => {
describe('Summary path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -150,4 +151,5 @@ describe('Item summary path', () => {
expect(result).toContain('1');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('edit item basic data path', () => {
describe('Item', () => {
describe('Edit basic data path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -115,4 +116,5 @@ describe('edit item basic data path', () => {
expect(result).toEqual('Adquisición mercancia Extracomunitaria');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('add item tax path', () => {
describe('Item', () => {
describe('Edit tax path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -79,4 +80,5 @@ describe('add item tax path', () => {
expect(result).toEqual('General VAT');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('create item tags path', () => {
describe('Item', () => {
describe('Create tags path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -196,4 +197,5 @@ describe('create item tags path', () => {
expect(result).toEqual('5');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('create item niche path', () => {
describe('Item', () => {
describe('Create niche path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -99,4 +100,5 @@ describe('create item niche path', () => {
expect(result).toEqual('A4');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('create item botanical path', () => {
describe('Item', () => {
describe('Create botanical path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -129,4 +130,5 @@ describe('create item botanical path', () => {
expect(result).toEqual('decurrens');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('create item barcodes path', () => {
describe('Item', () => {
describe('Create barcodes path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -67,4 +68,5 @@ describe('create item barcodes path', () => {
expect(result).toEqual('5');
});
});
});
});

View File

@ -2,6 +2,7 @@ import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('Item', () => {
describe('Create path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -9,7 +10,6 @@ describe('Item', () => {
.waitForLogin('developer');
});
describe('create path', () => {
it('should access to the items index by clicking the items button', () => {
return nightmare
.click(selectors.moduleAccessView.itemsSectionButton)
@ -83,7 +83,7 @@ describe('Item', () => {
});
});
describe('clone path', () => {
describe('Clone path', () => {
it('should return to the items index by clicking the return to items button', () => {
return nightmare
.click(selectors.itemBasicData.goToItemIndexButton)

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('create ticket notes path', () => {
describe('Ticket', () => {
describe('Create notes path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -74,4 +75,5 @@ describe('create ticket notes path', () => {
expect(result).toEqual('description');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('delete ticket expeditions path', () => {
describe('Ticket', () => {
describe('Delete expeditions path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -56,4 +57,5 @@ describe('delete ticket expeditions path', () => {
expect(value).toContain('root');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('list sale path', () => {
describe('Ticket', () => {
describe('List sale path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -70,4 +71,5 @@ describe('list sale path', () => {
expect(value).toContain('€7.50');
});
});
});
});

View File

@ -1,7 +1,8 @@
import selectors from '../../helpers/selectors.js';
import createNightmare from '../../helpers/helpers';
describe('create ticket packages path', () => {
describe('Ticket', () => {
describe('Create packages path', () => {
const nightmare = createNightmare();
beforeAll(() => {
@ -123,4 +124,5 @@ describe('create ticket packages path', () => {
expect(result).toEqual('99');
});
});
});
});