forked from verdnatura/salix-front
17 lines
539 B
JavaScript
17 lines
539 B
JavaScript
/// <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 .q-card .text').eq(0).should('have.text', message);
|
|
});
|
|
});
|