mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-23 01:53:00 +00:00
feat: improved e2e tests
This commit is contained in:
@@ -15,16 +15,19 @@
|
||||
|
||||
describe('ical', function () {
|
||||
beforeEach(function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/academic-event/event-1.json',
|
||||
}).as('search');
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
|
||||
fixture: 'search/types/date-series/date-series-for-event-1.json',
|
||||
cy.interceptSearch({
|
||||
extends: {query: 'a'},
|
||||
fixture: 'schedule/events',
|
||||
});
|
||||
cy.interceptMultiSearch({
|
||||
extends: 'schedule/events',
|
||||
fixture: 'schedule/events',
|
||||
});
|
||||
});
|
||||
|
||||
it('should export a single event', function () {
|
||||
cy.visit('/search?query=test');
|
||||
cy.visit('/search?query=a');
|
||||
cy.patchSearchPage();
|
||||
cy.wait('@search');
|
||||
cy.contains('ion-chip', 'Termine Auswählen').first().click();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user