0
0
Fork 0
salix-front-mindshore-fork2/test/cypress/integration/ClaimNotes.spec.js

17 lines
543 B
JavaScript
Raw Normal View History

/// <reference types="cypress" />
describe('ClaimNotes', () => {
beforeEach(() => {
const claimId = 2;
cy.login('developer');
cy.visit(`/#/claim/${claimId}/notes`);
});
it('should add a new note', () => {
const message = 'This is a new message.';
cy.get('.add-btn').click();
cy.get('.note-dialog__content').type(message);
cy.get('.note-dialog__actions .q-btn:nth-child(2)').click();
cy.get('.notes > :nth-child(1) > .text').should('have.text', message);
});
});