feat: improved e2e tests

This commit is contained in:
2023-12-05 15:21:01 +01:00
committed by Thea Schöbl
parent bff2d985aa
commit d7a85b7fae
66 changed files with 6353 additions and 4471 deletions

View File

@@ -14,10 +14,10 @@
*/
describe('catalog', function () {
it('should have path', function () {
cy.visit('/data-detail/ae3cf884-4dc4-526b-9213-6850135591ab');
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
fixture: 'search/types/catalog/catalog-1.json',
});
cy.interceptGet({uid: 'catalog', fixture: 'catalog/catalog', alias: 'catalog'});
cy.interceptSearch({extends: 'catalog/children', fixture: 'catalog/children', alias: 'catalog/children'});
cy.visit('/data-detail/catalog');
cy.wait('@catalog');
cy.get('stapps-data-path').within(() => {
cy.get('ion-breadcrumb').first().should('contain', 'FB 1 - Rechtswissenschaft');