From 6b937a4f8472b7fc0eb45c27673a8a2e9047bf87 Mon Sep 17 00:00:00 2001 From: Kishan P Rao Date: Tue, 11 Aug 2026 14:29:11 +0200 Subject: [PATCH 1/3] ci: run smoke tests when smoke test files change --- .github/actions/smoke-tests/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/smoke-tests/action.yml b/.github/actions/smoke-tests/action.yml index 45604600..b3f3b0e7 100644 --- a/.github/actions/smoke-tests/action.yml +++ b/.github/actions/smoke-tests/action.yml @@ -34,9 +34,13 @@ runs: - 'packages/browser/**' - 'packages/react/**' - 'packages/sdk-core/**' + - 'smoketests/**' + - '.github/actions/smoke-tests/**' node: - 'packages/sdk-core/**' - 'packages/node/**' + - 'smoketests/**' + - '.github/actions/smoke-tests/**' - run: npm run smoketest:node shell: bash From 968087bd97b091543290407bc312d3b90f5eb42f Mon Sep 17 00:00:00 2001 From: Kishan P Rao Date: Fri, 31 Jul 2026 19:16:46 +0200 Subject: [PATCH 2/3] smoketests: fix type errors after wdio 9 bump --- smoketests/tests/jest/node/tests.ts | 2 ++ smoketests/wdio.conf.ts | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/smoketests/tests/jest/node/tests.ts b/smoketests/tests/jest/node/tests.ts index c277d892..54fce1e9 100644 --- a/smoketests/tests/jest/node/tests.ts +++ b/smoketests/tests/jest/node/tests.ts @@ -1,3 +1,5 @@ +// explicit import so jest matcher types win over expect-webdriverio's global expect +import { expect } from '@jest/globals'; import { npm } from '../../__helpers/npm.js'; import { RXID_REGEX } from '../../__helpers/rxid.js'; import { DIRECT_SUBMIT_URL, SUBMIT_LAYER_URL } from '../../__helpers/urls.js'; diff --git a/smoketests/wdio.conf.ts b/smoketests/wdio.conf.ts index 95636288..2baaea1a 100644 --- a/smoketests/wdio.conf.ts +++ b/smoketests/wdio.conf.ts @@ -4,13 +4,6 @@ export const config: Options.Testrunner & { capabilities: WebdriverIO.Capabilities[]; } = { runner: 'local', - autoCompileOpts: { - autoCompile: true, - tsNodeOpts: { - project: './tsconfig.json', - transpileOnly: true, - }, - }, user: process.env.SMOKETESTS_SAUCE_USERNAME, key: process.env.SMOKETESTS_SAUCE_ACCESS_KEY, From 8e2c445c512fbc1abd3a4d66ba63f6c848e66db1 Mon Sep 17 00:00:00 2001 From: Kishan P Rao Date: Mon, 10 Aug 2026 16:45:53 +0200 Subject: [PATCH 3/3] smoketests: show sauce connect logs --- smoketests/wdio.conf.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/smoketests/wdio.conf.ts b/smoketests/wdio.conf.ts index 2baaea1a..34ec1437 100644 --- a/smoketests/wdio.conf.ts +++ b/smoketests/wdio.conf.ts @@ -49,6 +49,10 @@ export const config: Options.Testrunner & { 'sauce', { sauceConnect: true, + sauceConnectOpts: { + // sc output is debug-level and dropped under logLevel info, print it so CI shows the exit reason + logger: (output: string) => console.log(`[sauce-connect] ${output}`), + }, // eslint-disable-next-line @typescript-eslint/no-explicit-any setJobName(config, capabilities: any) { return `@backtrace/javascript smoketests for ${capabilities.browserName} on ${capabilities.platformName}`;