2024-07-03 07:33:48 +00:00
|
|
|
/// <reference types="cypress" />
|
|
|
|
describe('VnBreadcrumbs', () => {
|
|
|
|
const lastBreadcrumb = '.q-breadcrumbs--last > .q-breadcrumbs__el';
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.login('developer');
|
|
|
|
cy.visit('/');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should not be breadcrumbs', () => {
|
|
|
|
cy.get('.q-breadcrumbs').should('not.exist');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should get the correct breadcrumbs', () => {
|
2024-10-13 09:20:51 +00:00
|
|
|
cy.visit('#/customer/1/summary');
|
2024-07-03 07:33:48 +00:00
|
|
|
cy.get(`${lastBreadcrumb} > .q-icon`).should('have.text', 'launch');
|
|
|
|
});
|
|
|
|
});
|