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

32 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-09-18 12:35:21 +00:00
/// <reference types="cypress" />
describe('ClaimNotes', () => {
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/claim/${1}/log`);
});
it('should have just one record', () => {
cy.get('.model-info .q-btn').eq(1).click();
cy.get('.user-log .model-log').its('length').should('eq', 1);
cy.get('.q-page-sticky .q-btn').click();
cy.get('.user-log .model-log').its('length').should('eq', 4);
});
it('should filter by insert actions', () => {
cy.get('.q-gutter-x-sm > .q-btn > .q-btn__content > .q-icon').click();
cy.get('.q-checkbox__inner').eq(0).click();
cy.get('.q-page > .q-drawer-container > .fullscreen').click();
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 show the point record', () => {
cy.get('.pit').eq(0).click();
cy.get('.q-menu .q-card .header').should('have.text', 'Observation #1');
cy.get('.q-menu .q-card .json-string').should(
'have.text',
'Waiting for customer'
);
});
});