diff --git a/test/cypress/integration/vnSearchBar.spec.js b/test/cypress/integration/vnSearchBar.spec.js new file mode 100644 index 000000000..6a769c9d9 --- /dev/null +++ b/test/cypress/integration/vnSearchBar.spec.js @@ -0,0 +1,20 @@ +/// +describe('VnSearchBar', () => { + beforeEach(() => { + cy.login('developer'); + cy.visit('/'); + }); + + it('should redirect to new customer', () => { + cy.visit('#/customer/1112/basic-data') + cy.get('.q-toolbar > .q-btn--round.q-btn--dense > .q-btn__content > .q-icon').click(); + cy.get('.q-item > .q-item__label').should('have.text',' #1112') + cy.get('.fullscreen').click(); + cy.get('#searchbar > form > label > div:nth-child(1) input').clear(); + cy.get('#searchbar > form > label > div:nth-child(1) input').type('1{enter}'); + cy.get('.q-toolbar > .q-btn--round.q-btn--dense > .q-btn__content > .q-icon').click(); + cy.get('.q-item > .q-item__label').should('have.text',' #1') + }); + + + });