0
0
Fork 0
salix-front-mindshore-fork2/test/cypress/integration/vnLog.spec.js

26 lines
851 B
JavaScript
Raw Normal View History

2023-09-18 12:35:21 +00:00
/// <reference types="cypress" />
describe('VnLog', () => {
2023-10-18 08:18:25 +00:00
const chips = [
':nth-child(1) > :nth-child(1) > .q-item__label > .q-chip > .q-chip__content',
':nth-child(2) > :nth-child(1) > .q-item__label > .q-chip > .q-chip__content',
];
2023-09-18 12:35:21 +00:00
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/claim/${1}/log`);
2023-10-18 08:18:25 +00:00
cy.openRightMenu();
2023-09-18 12:35:21 +00:00
});
it('should filter by insert actions', () => {
2023-10-18 08:18:25 +00:00
cy.checkOption(':nth-child(7) > .q-checkbox');
cy.get('.q-page').click();
2023-10-18 08:18:25 +00:00
cy.validateContent(chips[0], 'Document');
cy.validateContent(chips[1], 'Beginning');
2023-09-18 12:35:21 +00:00
});
it('should filter by entity', () => {
2023-10-18 08:18:25 +00:00
cy.selectOption('.q-drawer--right .q-item > .q-select', 'Claim');
2023-10-13 10:26:37 +00:00
cy.get('.q-page').click();
2023-10-18 08:18:25 +00:00
cy.validateContent(chips[0], 'Claim');
2023-09-18 12:35:21 +00:00
});
});