feat: #7449 added new button on claimLines, prevented claimAction to import lines with 0 quantity #1550

Open
provira wants to merge 13 commits from 7449-claimBeginningQuantity into dev
2 changed files with 6 additions and 5 deletions
Showing only changes of commit 06f6095d75 - Show all commits

View File

@ -15,9 +15,11 @@ describe('ClaimLines', () => {
cy.get('.q-notification__message').should('have.text', 'Lines added to claim');
})
it.only('should autofill claimed quantity if 0 or null', () => {
it('should autofill claimed quantity if 0 or null', () => {
cy.get('thead > tr > .q-table--col-auto-width > .q-checkbox > .q-checkbox__inner > .q-checkbox__bg').click();
cy.get('.q-btn--unelevated').click();
cy.get('tbody > :nth-child(1) > .text-primary').should('have.text', 5);
cy.checkNotification('Cantidades rellenadas automáticamente');
cy.get('.q-btn--unelevated').click();
cy.checkNotification('No hay cantidades para rellenar');
})
});

View File

@ -1,5 +1,4 @@
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(() => {
cy.login('developer');
@ -11,9 +10,9 @@ describe('ClaimNotes', () => {
cy.get('.q-textarea')
.should('be.visible')
.should('not.be.disabled')
.type(message);
.type(message, "{{enter}}");
cy.get(saveBtn).click();
cy.dataCy("save-continue-note-button").click();
cy.get(firstNote).should('have.text', message);
});
});