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 7a6ef4f22..2f764b35b 100644 --- a/e2e/paths/client-module/02_edit_basic_data.spec.js +++ b/e2e/paths/client-module/02_edit_basic_data.spec.js @@ -34,19 +34,20 @@ describe('Client', () => { }); }); - it('should click on the search result to access to the clients basic data', () => { + it('should click on the search result to access to the client summary', () => { return nightmare .waitForTextInElement(selectors.clientsIndex.searchResult, 'Bruce Wayne') .waitToClick(selectors.clientsIndex.searchResult) - .waitForURL('basic-data') + .waitForURL('summary') .url() .then(url => { - expect(url).toContain('basic-data'); + expect(url).toContain('summary'); }); }); it('should edit the client basic data', () => { return nightmare + .click(selectors.clientBasicData.basicDataButton) .wait(selectors.clientBasicData.nameInput) .clearInput(selectors.clientBasicData.nameInput) .type(selectors.clientBasicData.nameInput, 'Ororo Munroe')