0
0
Fork 0

fix: refs #6630 fix invoiceInList test

This commit is contained in:
Jorge Penadés 2024-01-11 16:42:41 +01:00
parent 3f720e0571
commit 14e6854881
2 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,7 @@ describe('InvoiceInList', () => {
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/invoice-in`);
cy.clickFilterSearchBtn();
});
it('should redirect on clicking a invoice', () => {

View File

@ -178,9 +178,13 @@ Cypress.Commands.add('clearSearchbar', (element) => {
});
Cypress.Commands.add('writeSearchbar', (value) => {
cy.get('#searchbar > form > label > div:nth-child(1) input').type(value);
cy.get('#searchbar > form > label > div:nth-child(1) input').type(value);
});
Cypress.Commands.add('validateContent', (selector, expectedValue) => {
cy.get(selector).should('have.text', expectedValue);
});
Cypress.Commands.add('clickFilterSearchBtn', () => {
cy.get('.q-item__section > .q-btn > .q-btn__content > .q-icon').click();
});
// registerCommands();