From a3fbe570b560709a46b5f6514bcfb88323512789 Mon Sep 17 00:00:00 2001 From: KozakLordOfMatrix Date: Thu, 18 Jun 2026 13:39:48 +0300 Subject: [PATCH] fix: correct operator precedence in stepRunnerType resolution --- resources/suite-runner.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/suite-runner.mjs b/resources/suite-runner.mjs index bb37318b0..0068c57e7 100644 --- a/resources/suite-runner.mjs +++ b/resources/suite-runner.mjs @@ -77,7 +77,7 @@ export class SuiteRunner { if (this.#client?.willRunTest) await this.#client.willRunTest(this.#suite, step); - const stepRunnerType = this.#suite.type ?? this.params.useAsyncSteps ? "async" : "default"; + const stepRunnerType = this.#suite.type ?? (this.params.useAsyncSteps ? "async" : "default"); const stepRunnerClass = STEP_RUNNER_LOOKUP[stepRunnerType]; const stepRunner = new stepRunnerClass(this.#frame, this.#page, this.#params, this.#suite, step, this._recordTestResults, stepRunnerType); await stepRunner.runStep();