salix-front/test/cypress/integration/vnSearchBar.spec.js

20 lines
624 B
JavaScript
Raw Normal View History

2024-01-09 11:06:17 +00:00
/// <reference types="cypress" />
describe('VnSearchBar', () => {
beforeEach(() => {
cy.login('developer');
cy.visit('/');
});
it('should redirect to new customer', () => {
cy.visit('#/customer/1112/basic-data')
2024-01-09 11:20:56 +00:00
cy.openLeftMenu();
2024-01-09 11:06:17 +00:00
cy.get('.q-item > .q-item__label').should('have.text',' #1112')
2024-01-09 11:20:56 +00:00
cy.closeLeftMenu();
cy.clearSearchbar();
cy.writeSearchbar('1{enter}');
cy.openLeftMenu();
2024-01-09 11:06:17 +00:00
cy.get('.q-item > .q-item__label').should('have.text',' #1')
2024-01-09 11:20:56 +00:00
cy.closeLeftMenu();
2024-01-09 11:06:17 +00:00
});
2024-01-09 11:20:56 +00:00
});