disable nux in e2e (#9551)

This commit is contained in:
Samuel Newman
2025-12-13 21:59:07 +02:00
committed by GitHub
parent b48ca13172
commit df4e888347
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -21,6 +21,7 @@ import {useProfileQuery} from '#/state/queries/profile'
import {type SessionAccount, useSession} from '#/state/session'
import {useOnboardingState} from '#/state/shell'
import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing'
import {ENV} from '#/env'
/*
* NUXs
*/
@@ -46,6 +47,7 @@ const queuedNuxs: {
enabled: ({currentProfile}) => {
return (
isNative &&
ENV !== 'e2e' &&
isExistingUserAsOf('2025-12-16T00:00:00.000Z', currentProfile.createdAt)
)
},
+4 -1
View File
@@ -49,7 +49,10 @@ export function Onboarding() {
const findContactsEnabled =
useIsFindContactsFeatureEnabledBasedOnGeolocation()
const showFindContacts =
isNative && findContactsEnabled && !gate('disable_onboarding_find_contacts')
ENV !== 'e2e' &&
isNative &&
findContactsEnabled &&
!gate('disable_onboarding_find_contacts')
const [state, dispatch] = useReducer(
reducer,