#1536 e2e claim summary
This commit is contained in:
parent
4b0a71644f
commit
39ffec686a
|
@ -508,7 +508,9 @@ export default {
|
||||||
itemDescriptorPopover: 'vn-claim-summary vn-item-descriptor-popover > vn-popover',
|
itemDescriptorPopover: 'vn-claim-summary vn-item-descriptor-popover > vn-popover',
|
||||||
itemDescriptorPopoverItemDiaryButton: 'vn-claim-summary > vn-item-descriptor-popover a[href="#!/item/2/diary"]',
|
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',
|
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: {
|
claimBasicData: {
|
||||||
claimStateAutocomplete: 'vn-claim-basic-data vn-autocomplete[field="$ctrl.claim.claimStateFk"]',
|
claimStateAutocomplete: 'vn-claim-basic-data vn-autocomplete[field="$ctrl.claim.claimStateFk"]',
|
||||||
|
|
|
@ -71,16 +71,25 @@ describe('claim Summary path', () => {
|
||||||
it(`should click on the first development worker making the worker descriptor visible`, async() => {
|
it(`should click on the first development worker making the worker descriptor visible`, async() => {
|
||||||
const visible = await nightmare
|
const visible = await nightmare
|
||||||
.waitToClick(selectors.claimSummary.firstDevelopmentWorker)
|
.waitToClick(selectors.claimSummary.firstDevelopmentWorker)
|
||||||
.wait(selectors.claimSummary.firstdevelopmentWorkerGoToClientButton)
|
.wait(selectors.claimSummary.firstDevelopmentWorkerGoToClientButton)
|
||||||
.isVisible(selectors.claimSummary.firstdevelopmentWorkerGoToClientButton);
|
.isVisible(selectors.claimSummary.firstDevelopmentWorkerGoToClientButton);
|
||||||
|
|
||||||
expect(visible).toBeTruthy();
|
expect(visible).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should check the url for the go to clientlink of the descriptor is for the right client id`, async() => {
|
it(`should check the url for the go to clientlink of the descriptor is for the right client id`, async() => {
|
||||||
const exists = await nightmare
|
const exists = await nightmare
|
||||||
.exists(selectors.claimSummary.firstdevelopmentWorkerGoToClientButton);
|
.exists(selectors.claimSummary.firstDevelopmentWorkerGoToClientButton);
|
||||||
|
|
||||||
expect(exists).toBeTruthy();
|
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();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue