diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index 1adf5ff2b..f0a5c37b5 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -729,10 +729,6 @@ export default { firstDeleteLine: 'vn-claim-action vn-tr:nth-child(1) vn-icon-button[icon="delete"]', isPaidWithManaCheckbox: 'vn-claim-action vn-check[ng-model="$ctrl.claim.isChargedToMana"]' }, - claimLog: { - anyLineCreated: 'vn-claim-log > vn-log vn-tbody > vn-tr', - firstLineCreatedProperty: 'vn-claim-log > vn-log vn-tbody > vn-tr:nth-child(1) > vn-td > vn-one:nth-child(3) > div span:nth-child(2)', - }, ordersIndex: { secondSearchResultTotal: 'vn-order-index vn-card > vn-table > div > vn-tbody .vn-tr:nth-child(2) vn-td:nth-child(9)', advancedSearchButton: 'vn-order-search-panel vn-submit[label="Search"]', diff --git a/e2e/paths/06-claim/07_.claim_log.spec.js b/e2e/paths/06-claim/07_.claim_log.spec.js deleted file mode 100644 index a970fd1e9..000000000 --- a/e2e/paths/06-claim/07_.claim_log.spec.js +++ /dev/null @@ -1,52 +0,0 @@ -import selectors from '../../helpers/selectors.js'; -import getBrowser from '../../helpers/puppeteer'; - -fdescribe('Claim log path', () => { - let browser; - let page; - const claimId = '1'; - - beforeAll(async() => { - browser = await getBrowser(); - page = browser.page; - await page.loginAndModule('claimManager', 'claim'); - }); - - afterAll(async() => { - await browser.close(); - }); - - it('should now navigate to the target claim basicData section', async() => { - await page.loginAndModule('claimManager', 'claim'); - await page.accessToSearchResult(claimId); - await page.accessToSection('claim.card.basicData'); - }); - - it(`should edit claim state and observation fields`, async() => { - await page.autocompleteSearch(selectors.claimBasicData.claimState, 'Faltas'); - await page.waitToClick(selectors.claimBasicData.saveButton); - const message = await page.waitForSnackbar(); - - expect(message.text).toContain('Data saved!'); - }); - - it(`should edit claim state and observation fields`, async() => { - await page.autocompleteSearch(selectors.claimBasicData.claimState, 'Faltas'); - await page.waitToClick(selectors.claimBasicData.saveButton); - const message = await page.waitForSnackbar(); - - expect(message.text).toContain('Data saved!'); - }); - - it(`should search for the created item and navigate to it's log section`, async() => { - await page.waitForState('claim.card.detail'); - await page.accessToSection('claim.card.log'); - }); - - it(`should confirm the log is showing 5 entries`, async() => { - await page.waitForSelector(selectors.claimLog.anyLineCreated); - const anyLineCreatedCount = await page.countElement(selectors.claimLog.anyLineCreated); - - expect(anyLineCreatedCount).toEqual(5); - }); -});