forked from verdnatura/salix-front
32 lines
1.2 KiB
JavaScript
32 lines
1.2 KiB
JavaScript
/// <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'
|
|
);
|
|
});
|
|
});
|