chore: make sure the constant for the welcome screen is patched (#30893)

This commit is contained in:
Bill Glesias
2025-01-16 13:43:48 -05:00
committed by GitHub
parent 90b017c1c1
commit 49d578c5c7
2 changed files with 2 additions and 2 deletions
@@ -402,7 +402,7 @@ function visitLaunchpad (options: { showWelcome?: boolean } = { showWelcome: fal
// avoid re-stubbing already stubbed prompts in case we call getPreferences multiple times
if ((ctx._apis.localSettingsApi.getPreferences as any).wrappedMethod === undefined) {
o.sinon.stub(ctx._apis.localSettingsApi, 'getPreferences').resolves({ majorVersionWelcomeDismissed: {
[13]: Date.now(),
[14]: Date.now(),
} })
}
}).then(() => {
+1 -1
View File
@@ -25,7 +25,7 @@ export const PACKAGE_MANAGERS = ['npm', 'yarn', 'pnpm'] as const
// Note: ONLY change this in code that will be merged into a release branch
// for a new major version of Cypress
export const MAJOR_VERSION_FOR_CONTENT = '13'
export const MAJOR_VERSION_FOR_CONTENT = '14'
export const RUN_ALL_SPECS_KEY = '__all' as const