Bookmarks: Create e2e tests (#90373)

This commit is contained in:
Laura Fernández
2024-10-09 10:43:01 +02:00
committed by GitHub
parent be7b293b79
commit 9491ab9a93
3 changed files with 68 additions and 3 deletions
+4 -1
View File
@@ -5,7 +5,10 @@ import { fromBaseUrl } from '../support/url';
const defaultUserPreferences = {
timezone: '', // "Default" option
} as const; // TODO: when we update typescript >4.9 change to `as const satisfies UserPreferencesDTO`
navbar: {
bookmarkUrls: [],
},
} as const satisfies UserPreferencesDTO; // TODO: when we update typescript >4.9 change to `as const satisfies UserPreferencesDTO`
// Only accept preferences we have defaults for as arguments. To allow a new preference to be set, add a default for it
type UserPreferences = Pick<UserPreferencesDTO, keyof typeof defaultUserPreferences>;