Skip to content

Commit 1bdd582

Browse files
author
Piotr Paulski
committed
Leave a descriptive comment on Locator workaround
1 parent ddf05e5 commit 1bdd582

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/McpContext.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export class McpContext implements Context {
133133
static async from(
134134
browser: Browser,
135135
logger: Debugger,
136+
/* Let tests use unbundled Locator class to avoid overly strict checks within puppeteer that fail when mixing bundled and unbundled class instances */
136137
locatorClass: typeof Locator = Locator,
137138
) {
138139
const context = new McpContext(browser, logger, locatorClass);

0 commit comments

Comments
 (0)