2023-09-18 12:35:21 +00:00
|
|
|
/// <reference types="cypress" />
|
2023-09-29 13:03:02 +00:00
|
|
|
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-12-11 10:59:01 +00:00
|
|
|
cy.openRightMenu('.timeline');
|
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');
|
2023-09-29 13:03:02 +00:00
|
|
|
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
|
|
|
});
|
|
|
|
|
2023-09-29 13:03:02 +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
|
|
|
});
|
|
|
|
});
|