salix-front/test/cypress/integration/vnComponent/VnLog.spec.js

29 lines
929 B
JavaScript

/// <reference types="cypress" />
describe('VnLog', () => {
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/claim/${1}/log`);
});
it('should filter by insert actions', () => {
cy.get('[data-cy="vnLog-checkbox"]').eq(0).click();
cy.get('[data-cy="vnLog-action-icon"]').each(($el) => {
cy.wrap($el).should('have.attr', 'title', 'Creates');
});
});
it('should filter by entity', () => {
const entity = 'Document';
cy.selectOption('[data-cy="vnLog-entity"]', entity);
cy.get('[data-cy="vnLog-model-chip"]').each(($el) => {
cy.wrap($el).should('have.text', entity);
});
});
it('should show claimDescriptor', () => {
cy.dataCy('iconLaunch-claimFk').first().click();
cy.dataCy('vnDescriptor_subtitle').contains('1');
cy.dataCy('iconLaunch-claimFk').first().click();
});
});