mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-04 04:22:50 +00:00
fix: opening hours not updating feat: lazy-load opening hours module feat: add e2e tests for opening hours refactor: migrate opening hours to on-push change detection feat: show exact minutes in opening hours starting one hour before next change
57 lines
1.9 KiB
TypeScript
57 lines
1.9 KiB
TypeScript
/*
|
|
* 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.
|
|
*
|
|
* 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/>.
|
|
*/
|
|
|
|
// ***********************************************************
|
|
// This example support/index.js is processed and
|
|
// loaded automatically before your test files.
|
|
//
|
|
// This is a great place to put global configuration and
|
|
// behavior that modifies Cypress.
|
|
//
|
|
// You can change the location of this file or turn off
|
|
// automatically serving support files with the
|
|
// 'supportFile' configuration option.
|
|
//
|
|
// You can read more here:
|
|
// https://on.cypress.io/configuration
|
|
// ***********************************************************
|
|
|
|
// When a command from ./commands is ready to use, import with `import './commands'` syntax
|
|
// import './commands';
|
|
|
|
beforeEach(function () {
|
|
cy.wrap(
|
|
new Promise(resolve => {
|
|
window.indexedDB.deleteDatabase('_ionicstorage').onsuccess = resolve;
|
|
}),
|
|
);
|
|
});
|
|
|
|
Cypress.on('window:before:load', window => {
|
|
// Fake that user is using its browser in German
|
|
Object.defineProperty(window.navigator, 'language', {value: 'de-DE'});
|
|
Object.defineProperty(window.navigator, 'languages', [{value: 'de-DE'}]);
|
|
|
|
cy.spy(window.console, 'error').as('consoleError');
|
|
});
|
|
|
|
afterEach(function () {
|
|
cy.get('@consoleError').should('not.have.been.called');
|
|
});
|
|
|
|
Cypress.on('uncaught:exception', error => {
|
|
return !error.message.includes('ResizeObserver loop limit exceeded');
|
|
});
|