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

@@ -1,8 +1,16 @@
describe('opening hours', () => {
beforeEach(function () {
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
fixture: 'search/types/canteen/canteen-search-result.json',
}).as('search');
cy.interceptSearch({
extends: 'canteen/all',
fixture: 'canteen/all',
alias: 'search',
});
cy.interceptMultiSearch({
extends: 'canteen/dishes',
fixture: 'canteen/dishes',
alias: 'dishes',
});
cy.clock().invoke('restore');
});
it('should specify relative closing time', () => {