Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: fix vscode test failure (#38527)

Simon Knottb72c5f2d8bd2
diff --git a/packages/playwright/src/worker/testInfo.ts b/packages/playwright/src/worker/testInfo.ts
index c4525a5750..6564551723 100644
--- a/packages/playwright/src/worker/testInfo.ts
+++ b/packages/playwright/src/worker/testInfo.ts
@@ -471,13 +471,13 @@ export class TestInfoImpl implements TestInfo {
this._callbacks.onTestPaused!({ testId: this.testId, stepId: step.stepId, errors: this._isFailure() ? this.errors : [] }),
this._interruptedPromise.then(() => 'interrupted' as const),
]);
- step.complete({});
if (result !== 'interrupted') {
if (result.action === 'abort')
this._interrupt();
if (result.action === undefined)
await this._interruptedPromise;
}
+ step.complete({});
}
await this._onDidFinishTestFunctionCallback?.();
}