2023-08-16 07:03:41 +00:00
|
|
|
describe('ClaimNotes', () => {
|
2024-10-10 10:12:03 +00:00
|
|
|
const saveBtn = '.q-field__append > .q-btn > .q-btn__content > .q-icon';
|
|
|
|
const firstNote = '.q-infinite-scroll :nth-child(1) > .q-card__section--vert';
|
2023-08-16 07:03:41 +00:00
|
|
|
beforeEach(() => {
|
|
|
|
cy.login('developer');
|
2023-08-24 12:56:26 +00:00
|
|
|
cy.visit(`/#/claim/${2}/notes`);
|
2023-08-16 07:03:41 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should add a new note', () => {
|
|
|
|
const message = 'This is a new message.';
|
2024-04-15 10:28:43 +00:00
|
|
|
cy.get('.q-textarea').type(message);
|
2024-10-10 10:12:03 +00:00
|
|
|
cy.get(saveBtn).click();
|
|
|
|
cy.get(firstNote).should('have.text', message);
|
2023-08-16 07:03:41 +00:00
|
|
|
});
|
|
|
|
});
|