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

20 lines
743 B
JavaScript
Raw Normal View History

2023-10-06 07:11:29 +00:00
/// <reference types="cypress" />
describe('VnBreadCrumbs', () => {
beforeEach(() => {
cy.login('developer');
cy.visit('/');
});
it('should not be breadcrumbs', () => {
cy.get('.q-breadcrumbs').should('not.exist');
});
it('should get the correct breadcrumbs', () => {
cy.get('[href="#/customer"]').click();
cy.get('.q-breadcrumbs .q-breadcrumbs--last').should('have.length', 1);
2023-10-13 10:36:25 +00:00
cy.get('.q-breadcrumbs .q-breadcrumbs--last').contains('List');
2023-10-06 07:11:29 +00:00
cy.get('.q-infinite-scroll > :nth-child(1)').click();
cy.get('.q-breadcrumbs .q-breadcrumbs__el').should('have.length', 2);
2023-10-13 10:36:25 +00:00
cy.get('.q-breadcrumbs .q-breadcrumbs__el').eq(1).contains('Summary');
2023-10-06 07:11:29 +00:00
});
});