From a3e4a8a6067531ffcb1f85598bee9e3d69810fd1 Mon Sep 17 00:00:00 2001 From: Stokes Player Date: Fri, 7 Jul 2023 16:36:28 -0400 Subject: [PATCH] fix: correct invalid stored preference for in-app notifications (#27237) --- cli/CHANGELOG.md | 1 + .../settings/device/NotificationSettings.vue | 11 +++- .../src/actions/LocalSettingsActions.ts | 20 +++++- .../src/sources/VersionsDataSource.ts | 2 + .../unit/actions/LocalSettingsActions.spec.ts | 64 +++++++++++++++++++ packages/data-context/test/unit/helper.ts | 2 + packages/types/src/preferences.ts | 4 +- 7 files changed, 100 insertions(+), 4 deletions(-) create mode 100644 packages/data-context/test/unit/actions/LocalSettingsActions.spec.ts diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index c53d651390e4..7a2f30272194 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -5,6 +5,7 @@ _Released 07/18/2023 (PENDING)_ **Bugfixes:** +- Fixed invalid stored preference when enabling in-app notifications that could cause the application to crash. Fixes [#27228](https://github.com/cypress-io/cypress/issues/27228). - Fixed an issue with the Typescript types of [`cy.screenshot()`](https://docs.cypress.io/api/commands/screenshot). Fixed in [#27130](https://github.com/cypress-io/cypress/pull/27130). ## 12.17.0 diff --git a/packages/app/src/settings/device/NotificationSettings.vue b/packages/app/src/settings/device/NotificationSettings.vue index 8cf8a11ebfcd..8b415ac727ca 100644 --- a/packages/app/src/settings/device/NotificationSettings.vue +++ b/packages/app/src/settings/device/NotificationSettings.vue @@ -101,7 +101,7 @@