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(() => { beforeEach(() => {
cy.login('developer'); cy.login('developer');
cy.visit(`/#/invoice-in`); cy.visit(`/#/invoice-in`);
cy.clickFilterSearchBtn();
}); });
it('should redirect on clicking a invoice', () => { it('should redirect on clicking a invoice', () => {

View File

@ -183,4 +183,8 @@ Cypress.Commands.add('writeSearchbar', (value) => {
Cypress.Commands.add('validateContent', (selector, expectedValue) => { Cypress.Commands.add('validateContent', (selector, expectedValue) => {
cy.get(selector).should('have.text', 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(); // registerCommands();