Files
archived-orca/tests/e2e/helpers/e2e-completed-onboarding-profile.ts
OrcaWinandm4air 5434ee9933 fix(ci): unblock the release cut's Windows skill gate and Linux golden run (#38443)
* fix(ci): run the release skill-sharing Electron install step in bash

#38130 turned this step into a POSIX path fallback, but the skill sharing
release gate also runs on windows-2022, where the default shell is
PowerShell. The step failed with a ParserError, so release-preflight
skipped every build for the v1.4.250 cut.

* test(e2e): keep the one-time Codex notice out of golden runs

The v1.4.250 golden e2e on Linux timed out clicking New Terminal: the
'Orca now runs Codex without its shared server' toast fires once when the
golden stub (a Codex terminal) appears, and here it landed while the +
menu was open and closed it. Mark it seen in the completed-user fixture
like the other one-time notices, and restore that fixture from the
workflow ref in the release golden job so a recovered tag uses it.

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
2026-11-05 08:05:38 +00:00

54 lines
1.8 KiB
TypeScript

import {
ONBOARDING_FINAL_STEP,
ONBOARDING_FLOW_VERSION
} from '../../../src/shared/onboarding-defaults'
import { FEATURE_INTERACTION_IDS } from '../../../src/shared/feature-interactions'
import { FEATURE_TIP_IDS } from '../../../src/shared/feature-tips'
const SEEN_FIRST_RUN_CONTEXTUAL_TOUR_IDS = [
'workspace-board',
'browser',
'tasks',
'automations',
'workspace-creation'
] as const
const SEEN_FIRST_RUN_FEATURE_INTERACTION_TIMESTAMP = Date.parse('2026-01-01T00:00:00.000Z')
export function getE2ECompletedOnboardingProfile() {
return {
settings: {
telemetry: {
optedIn: true,
installId: '00000000-0000-4000-8000-000000000000',
existedBeforeTelemetryRelease: false
}
},
onboarding: {
flowVersion: ONBOARDING_FLOW_VERSION,
closedAt: 1,
outcome: 'completed',
lastCompletedStep: ONBOARDING_FINAL_STEP
},
ui: {
// Suppress first-run education overlays in completed-user fixtures.
featureTipsSeenIds: [...FEATURE_TIP_IDS],
featureInteractions: Object.fromEntries(
FEATURE_INTERACTION_IDS.map((id) => [
id,
{ firstInteractedAt: SEEN_FIRST_RUN_FEATURE_INTERACTION_TIMESTAMP }
])
),
contextualToursSeenIds: [...SEEN_FIRST_RUN_CONTEXTUAL_TOUR_IDS],
contextualToursAutoEligible: false,
projectOrderManualDefaultNoticeDismissed: true,
// Keep the browser import hint out of split-test pointer paths.
browserImportHintHidden: true,
// Suppress the usage-display toast in completed-user fixtures.
usagePercentageDisplayChangeNoticeDismissed: true,
statusBarCompactChangeNoticeDismissed: true,
// Shown once when a Codex terminal appears; it can land mid-test and close an open menu.
codexTerminalServerIsolationNoticeSeen: true
}
}
}