#6384 Redirect to summary when route changes #149

Merged
jsegarra merged 10 commits from 6384_vnSearchbar_redirect into dev 2024-01-11 12:47:29 +00:00
1 changed files with 20 additions and 0 deletions
Showing only changes of commit 762daa620b - Show all commits
test/cypress/integration

View File

@ -0,0 +1,20 @@
/// <reference types="cypress" />
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')
});
});