From df2262ae536a9b845a6454f4d78818b8d8f6fc68 Mon Sep 17 00:00:00 2001 From: damencho Date: Fri, 22 Aug 2025 11:35:08 -0500 Subject: [PATCH] feat(tests): Return early if jaas tests not configured. --- tests/wdio.conf.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/wdio.conf.ts b/tests/wdio.conf.ts index 5c5adec9e8..e9b47959c4 100644 --- a/tests/wdio.conf.ts +++ b/tests/wdio.conf.ts @@ -211,6 +211,13 @@ export const config: WebdriverIO.MultiremoteConfig = { } as IContext; globalAny.ctx.testProperties = testProperties; + if (testProperties.useJaas && !testsConfig.jaas.enabled) { + console.warn(`JaaS is not configured, skipping ${testName}.`); + globalAny.ctx.skipSuiteTests = true; + + return; + } + await Promise.all(multiremotebrowser.instances.map(async (instance: string) => { const bInstance = multiremotebrowser.getInstance(instance); @@ -252,11 +259,6 @@ export const config: WebdriverIO.MultiremoteConfig = { console.warn(`WebhookProxy is not available, skipping ${testName}`); globalAny.ctx.skipSuiteTests = true; } - - if (testProperties.useJaas && !testsConfig.jaas.enabled) { - console.warn(`JaaS is not configured, skipping ${testName}.`); - globalAny.ctx.skipSuiteTests = true; - } }, after() {