forked from verdnatura/salix-front
fix: refs #6630 fix invoiceInList test
This commit is contained in:
parent
3f720e0571
commit
14e6854881
|
@ -9,6 +9,7 @@ describe('InvoiceInList', () => {
|
|||
beforeEach(() => {
|
||||
cy.login('developer');
|
||||
cy.visit(`/#/invoice-in`);
|
||||
cy.clickFilterSearchBtn();
|
||||
});
|
||||
|
||||
it('should redirect on clicking a invoice', () => {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue