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 bad merge in codeGenerator.ts (#5196)

Dmitry Gozmane915e51ea987
diff --git a/src/server/supplements/recorder/codeGenerator.ts b/src/server/supplements/recorder/codeGenerator.ts
index bda7efe9e1..8d8def14be 100644
--- a/src/server/supplements/recorder/codeGenerator.ts
+++ b/src/server/supplements/recorder/codeGenerator.ts
@@ -94,7 +94,7 @@ export class CodeGenerator {
}
if (lastAction && action.name === 'navigate' && lastAction.name === 'navigate') {
if (action.url === lastAction.url) {
- this._currentAction = undefined;
+ this._currentAction = null;
return;
}
}