diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index 818ef48a1..c8b830ae7 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -508,7 +508,9 @@ export default { itemDescriptorPopover: 'vn-claim-summary vn-item-descriptor-popover > vn-popover', itemDescriptorPopoverItemDiaryButton: 'vn-claim-summary > vn-item-descriptor-popover a[href="#!/item/2/diary"]', firstDevelopmentWorker: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(5) > vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > span', - firstdevelopmentWorkerGoToClientButton: 'vn-claim-summary > vn-worker-descriptor-popover > vn-popover vn-worker-descriptor div.quicklinks > a[href="#!/client/21/summary"]' + firstDevelopmentWorkerGoToClientButton: 'vn-claim-summary > vn-worker-descriptor-popover > vn-popover vn-worker-descriptor div.quicklinks > a[href="#!/client/21/summary"]', + firstActionTicketId: 'vn-claim-summary > vn-card > div > vn-horizontal > vn-auto:nth-child(6) > vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > span', + firstActionTicketDescriptor: 'vn-claim-summary > vn-ticket-descriptor-popover > vn-popover > div > div.content > vn-ticket-descriptor' }, claimBasicData: { claimStateAutocomplete: 'vn-claim-basic-data vn-autocomplete[field="$ctrl.claim.claimStateFk"]', diff --git a/e2e/paths/06-claim-module/05_summary.spec.js b/e2e/paths/06-claim-module/05_summary.spec.js index 7843f8ce9..07e4c9080 100644 --- a/e2e/paths/06-claim-module/05_summary.spec.js +++ b/e2e/paths/06-claim-module/05_summary.spec.js @@ -71,16 +71,25 @@ describe('claim Summary path', () => { it(`should click on the first development worker making the worker descriptor visible`, async() => { const visible = await nightmare .waitToClick(selectors.claimSummary.firstDevelopmentWorker) - .wait(selectors.claimSummary.firstdevelopmentWorkerGoToClientButton) - .isVisible(selectors.claimSummary.firstdevelopmentWorkerGoToClientButton); + .wait(selectors.claimSummary.firstDevelopmentWorkerGoToClientButton) + .isVisible(selectors.claimSummary.firstDevelopmentWorkerGoToClientButton); expect(visible).toBeTruthy(); }); it(`should check the url for the go to clientlink of the descriptor is for the right client id`, async() => { const exists = await nightmare - .exists(selectors.claimSummary.firstdevelopmentWorkerGoToClientButton); + .exists(selectors.claimSummary.firstDevelopmentWorkerGoToClientButton); expect(exists).toBeTruthy(); }); + + it(`should click on the first action ticket ID making the ticket descriptor visible`, async() => { + const visible = await nightmare + .waitToClick(selectors.claimSummary.firstActionTicketId) + .wait(selectors.claimSummary.firstActionTicketDescriptor) + .isVisible(selectors.claimSummary.firstActionTicketDescriptor); + + expect(visible).toBeTruthy(); + }); });