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

@@ -13,14 +13,24 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
describe('App', () => {
beforeEach(() => {
cy.interceptSearch({
extends: 'news/all',
fixture: 'news/all',
alias: 'newsSection',
});
cy.visit('/overview');
cy.wait(['@config', '@newsSection']);
});
it('should have a proper title', () => {
cy.visit('/');
cy.visit('/overview');
cy.title().should('equal', 'StApps');
});
it('should have a proper working navigation', () => {
cy.visit('/');
cy.visit('/overview');
cy.contains('ion-tab-button', 'Mensa').click();
cy.get('ion-title').contains('Mensa');