Disable policy overlay in e2e

This commit is contained in:
Eric Bailey
2025-08-07 11:20:33 -05:00
parent 379f85fcee
commit 99c6275ad6
@@ -35,7 +35,10 @@ export function usePolicyUpdateContext() {
export function Provider({children}: {children?: ReactNode}) { export function Provider({children}: {children?: ReactNode}) {
const [isReadyToShowOverlay, setIsReadyToShowOverlay] = useState(false) const [isReadyToShowOverlay, setIsReadyToShowOverlay] = useState(false)
const state = usePolicyUpdateState({enabled: isReadyToShowOverlay}) const state = usePolicyUpdateState({
// only enable the policy update overlay in non-test environments
enabled: isReadyToShowOverlay && process.env.NODE_ENV !== 'test',
})
const ctx = useMemo( const ctx = useMemo(
() => ({ () => ({