Test #691 los e2e ya no usan developer
This commit is contained in:
parent
8c0e68313b
commit
9beb4885a0
|
@ -7,7 +7,7 @@ describe('Client', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should access to the clients index by clicking the clients button', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Client', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('administrative');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@ describe('Client Edit fiscalData path', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('administrative');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Client', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('administrative');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Client', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
@ -137,7 +137,7 @@ describe('Client', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it(`should click on the active checkbox and receive an error to save it becouse it is the default address`, () => {
|
||||
it(`should click on the active checkbox and receive an error to save it because it is the default address`, () => {
|
||||
return nightmare
|
||||
.waitToClick(selectors.clientAddresses.activeCheckbox)
|
||||
.waitToClick(selectors.clientAddresses.saveButton)
|
||||
|
|
|
@ -6,7 +6,7 @@ describe('Client add address notes path', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Client', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Client', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Client', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('salesAssistant');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
@ -73,7 +73,7 @@ describe('Client', () => {
|
|||
.getInnerText(selectors.clientCredit.firstCreditText)
|
||||
.then(value => {
|
||||
expect(value).toContain(999);
|
||||
expect(value).toContain('developer');
|
||||
expect(value).toContain('salesAssistant');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Client', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Client', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('salesPerson');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Client', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should click on the Clients button of the top bar menu', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Item', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should access to the items index by clicking the items button', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Item', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('buyer');
|
||||
});
|
||||
|
||||
it('should access to the items index by clicking the items button', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Item', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('buyer');
|
||||
});
|
||||
|
||||
it('should access to the items index by clicking the items button', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Item', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('buyer');
|
||||
});
|
||||
|
||||
it('should access to the items index by clicking the items button', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Item', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('buyer');
|
||||
});
|
||||
|
||||
it('should access to the items index by clicking the items button', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Item', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('buyer');
|
||||
});
|
||||
|
||||
it('should access to the items index by clicking the items button', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Item', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('buyer');
|
||||
});
|
||||
|
||||
it('should access to the items index by clicking the items button', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@ describe('Item', () => {
|
|||
describe('Create path', () => {
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('buyer');
|
||||
});
|
||||
|
||||
it('should access to the items index by clicking the items button', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Ticket', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should access to the tickets index by clicking the tickets button', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Ticket', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('production');
|
||||
});
|
||||
|
||||
it('should access to the tickets index by clicking the tickets button', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@ describe('Ticket List sale path', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should click on the Tickets button of the top bar menu', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@ describe('Ticket Create packages path', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should click on the Tickets button of the top bar menu', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Ticket', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('production');
|
||||
});
|
||||
|
||||
it('should click on the Tickets button of the top bar menu', () => {
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('Ticket', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should click on the Tickets button of the top bar menu', () => {
|
||||
|
|
|
@ -265,7 +265,7 @@ describe('Ticket Edit sale path', () => {
|
|||
.waitToClick(selectors.ticketSales.firstSaleCheckbox)
|
||||
.waitToClick(selectors.ticketSales.moreMenuButton)
|
||||
.waitToClick(selectors.ticketSales.moreMenuCreateClaim)
|
||||
.waitForLogin('Developer')
|
||||
.waitForLogin('salesPerson')
|
||||
.waitToClick(selectors.globalItems.applicationsMenuButton)
|
||||
.wait(selectors.globalItems.applicationsMenuVisible)
|
||||
.waitToClick(selectors.globalItems.claimsButton)
|
||||
|
|
|
@ -6,7 +6,7 @@ describe('create client path', () => {
|
|||
|
||||
beforeAll(() => {
|
||||
return nightmare
|
||||
.waitForLogin('developer');
|
||||
.waitForLogin('employee');
|
||||
});
|
||||
|
||||
it('should access to the clients index by clicking the clients button', () => {
|
||||
|
|
|
@ -48,7 +48,7 @@ xdescribe('Auth routes', () => {
|
|||
|
||||
describe('when the user exists and the password is correct', () => {
|
||||
it('should login and return the token', done => {
|
||||
req.body.user = 'developer';
|
||||
req.body.user = 'employee';
|
||||
req.body.password = 'nightmare';
|
||||
res.json = response => {
|
||||
expect(response.token).toBeDefined();
|
||||
|
@ -58,7 +58,7 @@ xdescribe('Auth routes', () => {
|
|||
});
|
||||
|
||||
it('should define the url to continue upon login', done => {
|
||||
req.body.user = 'developer';
|
||||
req.body.user = 'employee';
|
||||
req.body.password = 'nightmare';
|
||||
req.body.location = 'http://localhost:5000/auth/?apiKey=salix&continue="continueURL"';
|
||||
res.json = response => {
|
||||
|
@ -69,7 +69,7 @@ xdescribe('Auth routes', () => {
|
|||
});
|
||||
|
||||
it('should define the loginUrl upon login', done => {
|
||||
req.body.user = 'developer';
|
||||
req.body.user = 'employee';
|
||||
req.body.password = 'nightmare';
|
||||
req.body.location = 'http://localhost:5000/auth/?apiKey=salix';
|
||||
res.json = response => {
|
||||
|
|
Loading…
Reference in New Issue