delete e2e
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-03-02 09:50:29 +01:00
parent 44318903e7
commit 64a94cd60d
2 changed files with 0 additions and 56 deletions

View File

@ -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"]',

View File

@ -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);
});
});