2023-09-18 12:35:21 +00:00
|
|
|
/// <reference types="cypress" />
|
2023-09-29 13:03:02 +00:00
|
|
|
describe('VnLog', () => {
|
2023-09-18 12:35:21 +00:00
|
|
|
beforeEach(() => {
|
|
|
|
cy.login('developer');
|
|
|
|
cy.visit(`/#/claim/${1}/log`);
|
2023-09-29 13:03:02 +00:00
|
|
|
cy.get('.q-gutter-x-sm > .q-btn > .q-btn__content > .q-icon').click();
|
2023-09-18 12:35:21 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should filter by insert actions', () => {
|
|
|
|
cy.get('.q-checkbox__inner').eq(0).click();
|
2023-09-29 13:03:02 +00:00
|
|
|
cy.get('.q-page').click();
|
2023-09-18 12:35:21 +00:00
|
|
|
cy.get('.model-info .q-chip__content').eq(0).should('have.text', 'Document');
|
|
|
|
cy.get('.model-info .q-chip__content').eq(1).should('have.text', 'Beginning');
|
|
|
|
});
|
|
|
|
|
2023-09-29 13:03:02 +00:00
|
|
|
it('should filter by entity', () => {
|
|
|
|
cy.get('.q-scrollarea .q-list .q-item .q-select').eq(0).click();
|
2023-09-29 13:13:19 +00:00
|
|
|
cy.get('.q-scrollarea .q-list .q-item .q-select').eq(0).type('cla');
|
|
|
|
cy.get('[role="listbox"] .q-item').should('have.text', 'Claim');
|
2023-09-18 12:35:21 +00:00
|
|
|
});
|
|
|
|
});
|