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,16 +1,16 @@
/*
* Copyright (C) 2022 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.
* 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.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
describe('context menu', function () {
@@ -19,13 +19,9 @@ describe('context menu', function () {
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
fixture: 'search/test.json',
}).as('search');
cy.intercept(
'POST',
'https://mobile.server.uni-frankfurt.de/search/multi',
{
fixture: 'search/multi-result.json',
},
);
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
fixture: 'search/multi-result.json',
});
cy.get('ion-searchbar').type('test');
cy.wait('@search');
cy.get('ion-searchbar > ion-menu-button').click();
@@ -58,21 +54,17 @@ describe('context menu', function () {
it('should truncate categories', function () {
cy.get('stapps-context').within(() => {
cy.contains('ion-item', '(4) Universitätsveranstaltung').should(
'not.exist',
);
cy.contains('ion-item', '(4) Universitätsveranstaltung').should('not.exist');
cy.get('.context-filter > ion-button').click();
cy.contains('ion-item', '(4) Universitätsveranstaltung').should('exist');
});
});
it('should truncate long category items', function () {
cy.contains('ion-list', 'Kategorien | Akademische Veranstaltung').within(
() => {
cy.contains('ion-item', '(1) Tutorium').should('not.exist');
cy.get('div > ion-button').click();
cy.contains('ion-item', '(1) Tutorium').should('exist');
},
);
cy.contains('ion-list', 'Kategorien | Akademische Veranstaltung').within(() => {
cy.contains('ion-item', '(1) Tutorium').should('not.exist');
cy.get('div > ion-button').click();
cy.contains('ion-item', '(1) Tutorium').should('exist');
});
});
});