feat(tests): Return early if jaas tests not configured.

This commit is contained in:
damencho
2025-08-22 11:35:08 -05:00
committed by Дамян Минков
parent d61deab163
commit df2262ae53

View File

@@ -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() {