diff --git a/e2e/paths/client-module/01_create_client.spec.js b/e2e/paths/client-module/01_create_client.spec.js index 012a9952d..a14067220 100644 --- a/e2e/paths/client-module/01_create_client.spec.js +++ b/e2e/paths/client-module/01_create_client.spec.js @@ -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', () => { diff --git a/e2e/paths/client-module/02_edit_basic_data.spec.js b/e2e/paths/client-module/02_edit_basic_data.spec.js index 30d92fb4c..2075187f0 100644 --- a/e2e/paths/client-module/02_edit_basic_data.spec.js +++ b/e2e/paths/client-module/02_edit_basic_data.spec.js @@ -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', () => { diff --git a/e2e/paths/client-module/03_edit_fiscal_data.spec.js b/e2e/paths/client-module/03_edit_fiscal_data.spec.js index 8dc6fc733..b826841e8 100644 --- a/e2e/paths/client-module/03_edit_fiscal_data.spec.js +++ b/e2e/paths/client-module/03_edit_fiscal_data.spec.js @@ -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', () => { diff --git a/e2e/paths/client-module/04_edit_pay_method.spec.js b/e2e/paths/client-module/04_edit_pay_method.spec.js index 3224c162d..b5e7b2f69 100644 --- a/e2e/paths/client-module/04_edit_pay_method.spec.js +++ b/e2e/paths/client-module/04_edit_pay_method.spec.js @@ -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', () => { diff --git a/e2e/paths/client-module/05_add_address.spec.js b/e2e/paths/client-module/05_add_address.spec.js index e128822d8..a9b171b11 100644 --- a/e2e/paths/client-module/05_add_address.spec.js +++ b/e2e/paths/client-module/05_add_address.spec.js @@ -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) diff --git a/e2e/paths/client-module/06_add_address_notes.spec.js b/e2e/paths/client-module/06_add_address_notes.spec.js index 52e5b2062..4242e6aaa 100644 --- a/e2e/paths/client-module/06_add_address_notes.spec.js +++ b/e2e/paths/client-module/06_add_address_notes.spec.js @@ -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', () => { diff --git a/e2e/paths/client-module/07_edit_web_access.spec.js b/e2e/paths/client-module/07_edit_web_access.spec.js index 24aaf2f1d..3225342d7 100644 --- a/e2e/paths/client-module/07_edit_web_access.spec.js +++ b/e2e/paths/client-module/07_edit_web_access.spec.js @@ -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', () => { diff --git a/e2e/paths/client-module/08_add_notes.spec.js b/e2e/paths/client-module/08_add_notes.spec.js index d09c107fa..299961fd3 100644 --- a/e2e/paths/client-module/08_add_notes.spec.js +++ b/e2e/paths/client-module/08_add_notes.spec.js @@ -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', () => { diff --git a/e2e/paths/client-module/09_add_credit.spec.js b/e2e/paths/client-module/09_add_credit.spec.js index 1bc1f8dbb..745fe9620 100644 --- a/e2e/paths/client-module/09_add_credit.spec.js +++ b/e2e/paths/client-module/09_add_credit.spec.js @@ -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'); }); }); }); diff --git a/e2e/paths/client-module/10_add_greuge.spec.js b/e2e/paths/client-module/10_add_greuge.spec.js index 576db1293..f1b6d0535 100644 --- a/e2e/paths/client-module/10_add_greuge.spec.js +++ b/e2e/paths/client-module/10_add_greuge.spec.js @@ -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', () => { diff --git a/e2e/paths/client-module/11_mandate.spec.js b/e2e/paths/client-module/11_mandate.spec.js index d69955db4..4720ba766 100644 --- a/e2e/paths/client-module/11_mandate.spec.js +++ b/e2e/paths/client-module/11_mandate.spec.js @@ -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', () => { diff --git a/e2e/paths/client-module/13_invoices.spec.js b/e2e/paths/client-module/13_invoices.spec.js index 3657969c7..d0959aa4f 100644 --- a/e2e/paths/client-module/13_invoices.spec.js +++ b/e2e/paths/client-module/13_invoices.spec.js @@ -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', () => { diff --git a/e2e/paths/item-module/01_item_summary.spec.js b/e2e/paths/item-module/01_item_summary.spec.js index de2cdbbc7..b3953d4d6 100644 --- a/e2e/paths/item-module/01_item_summary.spec.js +++ b/e2e/paths/item-module/01_item_summary.spec.js @@ -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', () => { diff --git a/e2e/paths/item-module/02_edit_item_basic_data.spec.js b/e2e/paths/item-module/02_edit_item_basic_data.spec.js index 1ab0052b0..f1cac69ae 100644 --- a/e2e/paths/item-module/02_edit_item_basic_data.spec.js +++ b/e2e/paths/item-module/02_edit_item_basic_data.spec.js @@ -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', () => { diff --git a/e2e/paths/item-module/03_edit_item_tax.spec.js b/e2e/paths/item-module/03_edit_item_tax.spec.js index 9faa20795..1d25586f4 100644 --- a/e2e/paths/item-module/03_edit_item_tax.spec.js +++ b/e2e/paths/item-module/03_edit_item_tax.spec.js @@ -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', () => { diff --git a/e2e/paths/item-module/04_create_item_tags.spec.js b/e2e/paths/item-module/04_create_item_tags.spec.js index 04a25979d..e4dd8fa74 100644 --- a/e2e/paths/item-module/04_create_item_tags.spec.js +++ b/e2e/paths/item-module/04_create_item_tags.spec.js @@ -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', () => { diff --git a/e2e/paths/item-module/05_create_item_niche.spec.js b/e2e/paths/item-module/05_create_item_niche.spec.js index 7439824b5..0b51dd915 100644 --- a/e2e/paths/item-module/05_create_item_niche.spec.js +++ b/e2e/paths/item-module/05_create_item_niche.spec.js @@ -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', () => { diff --git a/e2e/paths/item-module/06_create_item_botanical.spec.js b/e2e/paths/item-module/06_create_item_botanical.spec.js index 3f7aa6fe6..a99efac83 100644 --- a/e2e/paths/item-module/06_create_item_botanical.spec.js +++ b/e2e/paths/item-module/06_create_item_botanical.spec.js @@ -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', () => { diff --git a/e2e/paths/item-module/07_create_item_barcode.spec.js b/e2e/paths/item-module/07_create_item_barcode.spec.js index e9e83220f..152156b20 100644 --- a/e2e/paths/item-module/07_create_item_barcode.spec.js +++ b/e2e/paths/item-module/07_create_item_barcode.spec.js @@ -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', () => { diff --git a/e2e/paths/item-module/08_item_create_and_clone.spec.js b/e2e/paths/item-module/08_item_create_and_clone.spec.js index 11ed26d61..35c9a59ca 100644 --- a/e2e/paths/item-module/08_item_create_and_clone.spec.js +++ b/e2e/paths/item-module/08_item_create_and_clone.spec.js @@ -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', () => { diff --git a/e2e/paths/ticket-module/01_create_ticket_observations.spec.js b/e2e/paths/ticket-module/01_create_ticket_observations.spec.js index fc83fccb1..3b435ba77 100644 --- a/e2e/paths/ticket-module/01_create_ticket_observations.spec.js +++ b/e2e/paths/ticket-module/01_create_ticket_observations.spec.js @@ -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', () => { diff --git a/e2e/paths/ticket-module/02_delete_ticket_expeditions.spec.js b/e2e/paths/ticket-module/02_delete_ticket_expeditions.spec.js index fc09dbd62..2b4c27015 100644 --- a/e2e/paths/ticket-module/02_delete_ticket_expeditions.spec.js +++ b/e2e/paths/ticket-module/02_delete_ticket_expeditions.spec.js @@ -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', () => { diff --git a/e2e/paths/ticket-module/03_list_sale.spec.js b/e2e/paths/ticket-module/03_list_sale.spec.js index 878febd85..da466c789 100644 --- a/e2e/paths/ticket-module/03_list_sale.spec.js +++ b/e2e/paths/ticket-module/03_list_sale.spec.js @@ -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', () => { diff --git a/e2e/paths/ticket-module/04_create_ticket_packages.spec.js b/e2e/paths/ticket-module/04_create_ticket_packages.spec.js index 06527ab8c..6125e8f3e 100644 --- a/e2e/paths/ticket-module/04_create_ticket_packages.spec.js +++ b/e2e/paths/ticket-module/04_create_ticket_packages.spec.js @@ -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', () => { diff --git a/e2e/paths/ticket-module/05_create_new_tracking_state.spec.js b/e2e/paths/ticket-module/05_create_new_tracking_state.spec.js index 0e8a5df05..1c81ee92d 100644 --- a/e2e/paths/ticket-module/05_create_new_tracking_state.spec.js +++ b/e2e/paths/ticket-module/05_create_new_tracking_state.spec.js @@ -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', () => { diff --git a/e2e/paths/ticket-module/06_edit_basic_data_steps.spec.js b/e2e/paths/ticket-module/06_edit_basic_data_steps.spec.js index 99f3577f9..98d43127a 100644 --- a/e2e/paths/ticket-module/06_edit_basic_data_steps.spec.js +++ b/e2e/paths/ticket-module/06_edit_basic_data_steps.spec.js @@ -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', () => { diff --git a/e2e/paths/ticket-module/07_edit_sale.spec.js b/e2e/paths/ticket-module/07_edit_sale.spec.js index 1a75a4aa6..d48dc74ed 100644 --- a/e2e/paths/ticket-module/07_edit_sale.spec.js +++ b/e2e/paths/ticket-module/07_edit_sale.spec.js @@ -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) diff --git a/e2e/smokes/01_client_path.spec.js b/e2e/smokes/01_client_path.spec.js index 4e00b0738..fd2b9b831 100644 --- a/e2e/smokes/01_client_path.spec.js +++ b/e2e/smokes/01_client_path.spec.js @@ -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', () => { diff --git a/services/auth/server/boot/specs/routes.spec.js b/services/auth/server/boot/specs/routes.spec.js index 19a92f558..c4697a788 100644 --- a/services/auth/server/boot/specs/routes.spec.js +++ b/services/auth/server/boot/specs/routes.spec.js @@ -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 => {