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,12 +14,21 @@
*/
describe('favorites', function () {
it('should add a favorite', function () {
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
fixture: 'search/test.json',
}).as('search');
beforeEach(() => {
cy.interceptSearch({
extends: {query: 'test'},
fixture: 'search/generic',
alias: 'search',
});
cy.interceptMultiSearch({
extends: 'search/event-chips',
fixture: 'search/event-chips',
});
});
it('should add a favorite', function () {
cy.visit('/search');
cy.patchSearchPage();
cy.get('ion-searchbar').type('test');
let text!: string;
cy.get('stapps-data-list-item')