mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
feat: separate prettier from eslint
This commit is contained in:
committed by
Thea Schöbl
parent
939fb6ef0f
commit
a88d000ccd
@@ -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('assessments', function () {
|
||||
@@ -23,19 +23,13 @@ describe('assessments', function () {
|
||||
});*/
|
||||
|
||||
it('should always have a path', function () {
|
||||
cy.visit(
|
||||
'/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock',
|
||||
);
|
||||
cy.visit('/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock');
|
||||
|
||||
cy.get('stapps-data-path')
|
||||
.should('contain', 'Basismodule')
|
||||
.should('contain', 'Modellierung');
|
||||
cy.get('stapps-data-path').should('contain', 'Basismodule').should('contain', 'Modellierung');
|
||||
});
|
||||
|
||||
it('should have a collapsed path', function () {
|
||||
cy.visit(
|
||||
'/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock',
|
||||
);
|
||||
cy.visit('/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock');
|
||||
|
||||
cy.get('.breadcrumb-collapsed').click();
|
||||
cy.get('ion-popover').within(() => {
|
||||
|
||||
@@ -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.
|
||||
@@ -18,13 +18,9 @@ describe('canteen', function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/canteen/canteen-1.json',
|
||||
}).as('search');
|
||||
cy.intercept(
|
||||
'POST',
|
||||
'https://mobile.server.uni-frankfurt.de/search/multi',
|
||||
{
|
||||
fixture: 'search/types/dish/dish-1.json',
|
||||
},
|
||||
);
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
|
||||
fixture: 'search/types/dish/dish-1.json',
|
||||
});
|
||||
});
|
||||
|
||||
it('should not utilize the default price', function () {
|
||||
@@ -34,10 +30,7 @@ describe('canteen', function () {
|
||||
|
||||
it('should have a student price', function () {
|
||||
cy.visit('/settings');
|
||||
cy.contains('stapps-settings-item', 'Gruppe')
|
||||
.find('ion-select')
|
||||
.should('be.visible')
|
||||
.click();
|
||||
cy.contains('stapps-settings-item', 'Gruppe').find('ion-select').should('be.visible').click();
|
||||
cy.get('ion-popover').contains('ion-item', 'Studierende').click();
|
||||
cy.wait(2000);
|
||||
cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596');
|
||||
@@ -46,10 +39,7 @@ describe('canteen', function () {
|
||||
|
||||
it('should have an employee price', function () {
|
||||
cy.visit('/settings');
|
||||
cy.contains('stapps-settings-item', 'Gruppe')
|
||||
.find('ion-select')
|
||||
.should('be.visible')
|
||||
.click();
|
||||
cy.contains('stapps-settings-item', 'Gruppe').find('ion-select').should('be.visible').click();
|
||||
cy.get('ion-popover').contains('ion-item', 'Angestellte').click();
|
||||
cy.wait(2000);
|
||||
cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596');
|
||||
@@ -58,10 +48,7 @@ describe('canteen', function () {
|
||||
|
||||
it('should have a guest price', function () {
|
||||
cy.visit('/settings');
|
||||
cy.contains('stapps-settings-item', 'Gruppe')
|
||||
.find('ion-select')
|
||||
.should('be.visible')
|
||||
.click();
|
||||
cy.contains('stapps-settings-item', 'Gruppe').find('ion-select').should('be.visible').click();
|
||||
cy.get('ion-popover').contains('ion-item', 'Gäste').click();
|
||||
cy.wait(2000);
|
||||
cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596');
|
||||
|
||||
@@ -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('catalog', function () {
|
||||
it('should have path', function () {
|
||||
@@ -20,12 +20,8 @@ describe('catalog', function () {
|
||||
});
|
||||
|
||||
cy.get('stapps-data-path').within(() => {
|
||||
cy.get('ion-breadcrumb')
|
||||
.first()
|
||||
.should('contain', 'FB 1 - Rechtswissenschaft');
|
||||
cy.get('ion-breadcrumb')
|
||||
.last()
|
||||
.should('contain', 'Studium der Pflichtfächer (1. bis 5. Semester)');
|
||||
cy.get('ion-breadcrumb').first().should('contain', 'FB 1 - Rechtswissenschaft');
|
||||
cy.get('ion-breadcrumb').last().should('contain', 'Studium der Pflichtfächer (1. bis 5. Semester)');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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('favorites', function () {
|
||||
@@ -41,8 +41,6 @@ describe('favorites', function () {
|
||||
cy.get('stapps-favorite-button').click();
|
||||
});
|
||||
cy.get('cdk-virtual-scroll-viewport').should('be.not.visible');
|
||||
cy.get('stapps-data-list')
|
||||
.contains('Keine Ergebnisse')
|
||||
.should('be.visible');
|
||||
cy.get('stapps-data-list').contains('Keine Ergebnisse').should('be.visible');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,31 +1,27 @@
|
||||
/*
|
||||
* 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('feedback', function () {
|
||||
it('should send feedback', function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/*').as(
|
||||
'feedback',
|
||||
);
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/*').as('feedback');
|
||||
|
||||
cy.visit('/feedback');
|
||||
|
||||
cy.get('input[name=name]').type('test');
|
||||
cy.get('input[name=email]').type('aaa@bbb.com');
|
||||
cy.get('textarea[name=message]').type(
|
||||
Array.from({length: 50}, () => 'a').join(''),
|
||||
);
|
||||
cy.get('textarea[name=message]').type(Array.from({length: 50}, () => 'a').join(''));
|
||||
|
||||
cy.get('ion-button[type=submit]').should('have.attr', 'disabled');
|
||||
cy.get('ion-checkbox[name=termsAgree]').click();
|
||||
|
||||
@@ -18,32 +18,20 @@ describe('ical', 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.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
|
||||
fixture: 'search/types/date-series/date-series-for-event-1.json',
|
||||
});
|
||||
});
|
||||
|
||||
it('should export a single event', function () {
|
||||
cy.visit('/search');
|
||||
cy.get('ion-searchbar').click().type('test');
|
||||
cy.contains('ion-item', 'UNIcert (Test)')
|
||||
.contains('ion-chip', 'Termine Auswählen')
|
||||
.click();
|
||||
cy.contains('ion-item', 'UNIcert (Test)').contains('ion-chip', 'Termine Auswählen').click();
|
||||
|
||||
cy.get('ion-app > ion-modal').within(() => {
|
||||
cy.get('ion-footer > ion-toolbar > ion-button').should(
|
||||
'have.attr',
|
||||
'disabled',
|
||||
);
|
||||
cy.get('ion-footer > ion-toolbar > ion-button').should('have.attr', 'disabled');
|
||||
cy.contains('ion-item', /eine Stunde um 19. Jan. 2059, \d+:00/).click();
|
||||
cy.get('ion-footer > ion-toolbar > ion-button').should(
|
||||
'not.have.attr',
|
||||
'disabled',
|
||||
);
|
||||
cy.get('ion-footer > ion-toolbar > ion-button').should('not.have.attr', 'disabled');
|
||||
cy.get('ion-footer > ion-toolbar > ion-button').click();
|
||||
});
|
||||
|
||||
|
||||
@@ -29,10 +29,7 @@ describe('news', function () {
|
||||
cy.visit('/news');
|
||||
cy.get('stapps-news-item').should('have.length', 6);
|
||||
cy.wait(500);
|
||||
cy.get('stapps-news-page > ion-content')
|
||||
.shadow()
|
||||
.find('main')
|
||||
.scrollTo('bottom');
|
||||
cy.get('stapps-news-page > ion-content').shadow().find('main').scrollTo('bottom');
|
||||
cy.wait('@search');
|
||||
cy.get('stapps-news-item').should('have.length', 12);
|
||||
});
|
||||
@@ -49,8 +46,6 @@ describe('news', function () {
|
||||
fixture: 'search/types/message/single-message.json',
|
||||
}).as('search');
|
||||
cy.visit('/data-detail/c90c7d30-410f-5aea-a67b-ea1f98929b93');
|
||||
cy.contains('ion-card', 'Ursprünglicher Link')
|
||||
.find('ion-icon[name="open_in_browser"]')
|
||||
.should('exist');
|
||||
cy.contains('ion-card', 'Ursprünglicher Link').find('ion-icon[name="open_in_browser"]').should('exist');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -18,13 +18,9 @@ describe('schedule', 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.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
|
||||
fixture: 'search/types/date-series/date-series-for-event-1.json',
|
||||
});
|
||||
});
|
||||
|
||||
it('should respect the url', function () {
|
||||
|
||||
@@ -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('search', function () {
|
||||
@@ -18,13 +18,9 @@ describe('search', function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/test.json',
|
||||
});
|
||||
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',
|
||||
});
|
||||
});
|
||||
|
||||
it('should have search results', function () {
|
||||
|
||||
@@ -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.
|
||||
@@ -21,9 +21,7 @@ describe('Settings Page', () => {
|
||||
|
||||
it('should change language', () => {
|
||||
cy.visit('/settings');
|
||||
cy.contains('ion-select', 'Deutsch')
|
||||
.should('be.visible')
|
||||
.click({force: true});
|
||||
cy.contains('ion-select', 'Deutsch').should('be.visible').click({force: true});
|
||||
cy.get('ion-popover').contains('ion-item', 'English').click();
|
||||
cy.get('ion-popover').should('not.exist');
|
||||
cy.get('ion-title').contains('Settings');
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
/*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Something akin to a.b.c a.b.C but never a... or a.AbC
|
||||
*/
|
||||
const probablyBadTranslationPattern =
|
||||
/^\s*([a-z_]+|[A-Z_]+)\.(([a-z_]+|[A-Z_]+)\.)([a-z_]+|[A-Z_]+)$/;
|
||||
const probablyBadTranslationPattern = /^\s*([a-z_]+|[A-Z_]+)\.(([a-z_]+|[A-Z_]+)\.)([a-z_]+|[A-Z_]+)$/;
|
||||
|
||||
// TODO: Reenable and stabilize tests
|
||||
//describe('translations', function () {
|
||||
|
||||
Reference in New Issue
Block a user