salix-front/test/cypress/integration/vnLog.spec.js

22 lines
837 B
JavaScript
Raw Normal View History

2023-09-18 12:35:21 +00:00
/// <reference types="cypress" />
describe('VnLog', () => {
2023-09-18 12:35:21 +00:00
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/claim/${1}/log`);
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();
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');
});
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
});
});