Skip to content

Commit 118e5f1

Browse files
author
Piotr Paulski
committed
Leave a descriptive comment on Locator workaround
1 parent 21880ee commit 118e5f1

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
@@ -127,6 +127,7 @@ export class McpContext implements Context {
127127
static async from(
128128
browser: Browser,
129129
logger: Debugger,
130+
/* Let tests use unbundled Locator class to avoid overly strict checks within puppeteer that fail when mixing bundled and unbundled class instances */
130131
locatorClass: typeof Locator = Locator,
131132
) {
132133
const context = new McpContext(browser, logger, locatorClass);

0 commit comments

Comments
 (0)