From ede4600591298ce3a558c94b7310ba3f15eac835 Mon Sep 17 00:00:00 2001 From: AJ Ancheta <7781450+ancheetah@users.noreply.github.com> Date: Wed, 26 Aug 2026 16:44:44 -0400 Subject: [PATCH] test(journey-app): support signalsInitializationOptions for protect test --- .../components/ping-protect-initialize.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/e2e/journey-app/components/ping-protect-initialize.ts b/e2e/journey-app/components/ping-protect-initialize.ts index 6cbe21db28..a42c9c4744 100644 --- a/e2e/journey-app/components/ping-protect-initialize.ts +++ b/e2e/journey-app/components/ping-protect-initialize.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2025 Ping Identity Corporation. All rights reserved. + * Copyright (c) 2025 - 2026 Ping Identity Corporation. All rights reserved. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. @@ -43,19 +43,8 @@ export default function pingProtectInitializeComponent( const config = callback.getConfig(); console.log('Protect callback config:', config); - if (!config?.envId) { - const error = 'Missing envId in Protect configuration'; - console.error(error); - callback.setClientError(error); - message.innerText = `Initialization failed: ${error}`; - message.style.color = 'red'; - return; - } - - console.log('Initializing Protect with envId:', config.envId); - // Create and store protect instance - protectInstance = protect({ envId: config.envId }); + protectInstance = protect(config); console.log('Protect instance created'); // Initialize the Protect SDK