refactor: move event select popup to a modal

This commit is contained in:
Thea Schöbl
2022-09-23 12:24:22 +00:00
committed by Rainer Killinger
parent 8a04a43903
commit 4a3f79ca20
22 changed files with 788 additions and 495 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('ical', function () {
@@ -34,14 +34,17 @@ describe('ical', function () {
.contains('ion-chip', 'Termine Auswählen')
.click();
cy.get('ion-app > ion-popover').within(() => {
cy.get('.download-button > ion-button').should('have.attr', 'disabled');
cy.get('ion-app > ion-modal').within(() => {
cy.get('ion-footer > ion-toolbar > ion-button').should(
'have.attr',
'disabled',
);
cy.contains('ion-item', /eine Stunde um 19. Jan. 2022, \d+:00/).click();
cy.get('.download-button > ion-button').should(
cy.get('ion-footer > ion-toolbar > ion-button').should(
'not.have.attr',
'disabled',
);
cy.get('.download-button > ion-button').click();
cy.get('ion-footer > ion-toolbar > ion-button').click();
});
cy.get('add-event-review-modal').within(() => {

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('schedule', function () {
@@ -97,10 +97,10 @@ describe('schedule', function () {
fixture: 'search/types/date-series/date-series-1.json',
});
cy.get('ion-app > ion-popover').within(() => {
cy.get('ion-app > ion-modal').within(() => {
cy.contains('ion-item', /eine Stunde um 19. Jan. 2022, \d+:00/).click();
cy.wait(2000);
cy.contains('ion-button', 'Ok').click();
cy.contains('ion-button', 'Bestätigen').click();
cy.wait(2000);
});