This commit is contained in:
parent
44c4c378f9
commit
5af14b1b52
|
@ -1,4 +1,6 @@
|
||||||
describe('ClaimNotes', () => {
|
describe('ClaimNotes', () => {
|
||||||
|
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(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit(`/#/claim/${2}/notes`);
|
cy.visit(`/#/claim/${2}/notes`);
|
||||||
|
@ -7,7 +9,7 @@ describe('ClaimNotes', () => {
|
||||||
it('should add a new note', () => {
|
it('should add a new note', () => {
|
||||||
const message = 'This is a new message.';
|
const message = 'This is a new message.';
|
||||||
cy.get('.q-textarea').type(message);
|
cy.get('.q-textarea').type(message);
|
||||||
cy.get('.q-field__append > .q-btn > .q-btn__content > .q-icon').click(); //save
|
cy.get(saveBtn).click();
|
||||||
cy.get(':nth-child(1) > .q-card__section--vert').should('have.text', message);
|
cy.get(firstNote).should('have.text', message);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue