disable nux in e2e (#9551)
This commit is contained in:
@@ -21,6 +21,7 @@ import {useProfileQuery} from '#/state/queries/profile'
|
|||||||
import {type SessionAccount, useSession} from '#/state/session'
|
import {type SessionAccount, useSession} from '#/state/session'
|
||||||
import {useOnboardingState} from '#/state/shell'
|
import {useOnboardingState} from '#/state/shell'
|
||||||
import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing'
|
import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing'
|
||||||
|
import {ENV} from '#/env'
|
||||||
/*
|
/*
|
||||||
* NUXs
|
* NUXs
|
||||||
*/
|
*/
|
||||||
@@ -46,6 +47,7 @@ const queuedNuxs: {
|
|||||||
enabled: ({currentProfile}) => {
|
enabled: ({currentProfile}) => {
|
||||||
return (
|
return (
|
||||||
isNative &&
|
isNative &&
|
||||||
|
ENV !== 'e2e' &&
|
||||||
isExistingUserAsOf('2025-12-16T00:00:00.000Z', currentProfile.createdAt)
|
isExistingUserAsOf('2025-12-16T00:00:00.000Z', currentProfile.createdAt)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -49,7 +49,10 @@ export function Onboarding() {
|
|||||||
const findContactsEnabled =
|
const findContactsEnabled =
|
||||||
useIsFindContactsFeatureEnabledBasedOnGeolocation()
|
useIsFindContactsFeatureEnabledBasedOnGeolocation()
|
||||||
const showFindContacts =
|
const showFindContacts =
|
||||||
isNative && findContactsEnabled && !gate('disable_onboarding_find_contacts')
|
ENV !== 'e2e' &&
|
||||||
|
isNative &&
|
||||||
|
findContactsEnabled &&
|
||||||
|
!gate('disable_onboarding_find_contacts')
|
||||||
|
|
||||||
const [state, dispatch] = useReducer(
|
const [state, dispatch] = useReducer(
|
||||||
reducer,
|
reducer,
|
||||||
|
|||||||
Reference in New Issue
Block a user