forked from verdnatura/salix-front
fix: refs #6891 fix invoiceInDueDay test
This commit is contained in:
parent
5b3ee220d4
commit
b062474f91
|
@ -1,6 +1,6 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('InvoiceInDueDay', () => {
|
describe('InvoiceInDueDay', () => {
|
||||||
const inputs = 'label input';
|
const amountInput = 'tbody > tr:nth-child(1) td:nth-child(4)';
|
||||||
const addBtn = '.q-page-sticky > div > .q-btn > .q-btn__content';
|
const addBtn = '.q-page-sticky > div > .q-btn > .q-btn__content';
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -9,7 +9,7 @@ describe('InvoiceInDueDay', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should update the amount', () => {
|
it('should update the amount', () => {
|
||||||
cy.get(inputs).eq(3).type(23);
|
cy.get(amountInput).type('{selectall}{backspace}23');
|
||||||
cy.saveCard();
|
cy.saveCard();
|
||||||
cy.get('.q-notification__message').should('have.text', 'Data saved');
|
cy.get('.q-notification__message').should('have.text', 'Data saved');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue