2023-08-16 07:03:41 +00:00
|
|
|
/// <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();
|
2023-08-18 10:12:53 +00:00
|
|
|
cy.get('.notes .q-card .text').eq(0).should('have.text', message);
|
2023-08-16 07:03:41 +00:00
|
|
|
});
|
|
|
|
});
|