feat: separate prettier from eslint

This commit is contained in:
Rainer Killinger
2023-01-11 13:25:18 +01:00
committed by Thea Schöbl
parent 939fb6ef0f
commit a88d000ccd
381 changed files with 17952 additions and 38411 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 StApps
* Copyright (C) 2023 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -59,10 +59,7 @@ describe('dashboard', async function () {
cy.get('stapps-mensa-section').within(() => {
cy.get('.card').should('have.length', 1);
cy.get('.card > ion-label > a').should(
'have.text',
'Übersicht der Mensen',
);
cy.get('.card > ion-label > a').should('have.text', 'Übersicht der Mensen');
});
});
@@ -73,17 +70,11 @@ describe('dashboard', async function () {
fixture: 'search/types/canteen/canteen-search-result.json',
});
cy.get('stapps-favorite-button').first().click();
cy.intercept(
'POST',
'https://mobile.server.uni-frankfurt.de/search/multi',
{
fixture: 'search/types/dish/dish-2.json',
},
);
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
fixture: 'search/types/dish/dish-2.json',
});
cy.get('ion-back-button').click();
cy.get('stapps-mensa-section')
.find('.card')
.should('have.length.greaterThan', 1);
cy.get('stapps-mensa-section').find('.card').should('have.length.greaterThan', 1);
});
});
@@ -107,10 +98,7 @@ describe('dashboard', async function () {
cy.visit('/overview');
cy.get('stapps-news-section').within(function () {
cy.get('.swiper-slide-active').should(
'have.text',
'DE for Students and Employees',
);
cy.get('.swiper-slide-active').should('have.text', 'DE for Students and Employees');
cy.get('.swiper-button-next').click({scrollBehavior: false});
@@ -184,9 +172,7 @@ describe('dashboard', async function () {
it('should go to search when clicking the icon', function () {
cy.visit('/overview');
cy.get('stapps-search-section')
.find('ion-icon[name=search]')
.click({force: true});
cy.get('stapps-search-section').find('ion-icon[name=search]').click({force: true});
cy.url().should('eq', Cypress.config().baseUrl + '/search?query=');
cy.get('ion-searchbar').should('not.have.value');