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

16 lines
531 B
JavaScript
Raw Normal View History

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';
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/claim/${2}/notes`);
});
it('should add a new note', () => {
const message = 'This is a new message.';
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);
});
});