Skip to content

Commit 3fcea79

Browse files
authored
chore: roll puppeteer (#25)
This should solve flakiness related to multiple browser instances.
1 parent 4aa0a18 commit 3fcea79

File tree

4 files changed

+30
-34
lines changed

4 files changed

+30
-34
lines changed

package-lock.json

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"dependencies": {
3636
"@modelcontextprotocol/sdk": "1.18.0",
3737
"debug": "4.4.3",
38-
"puppeteer-core": "24.20.0",
38+
"puppeteer-core": "24.21.0",
3939
"yargs": "18.0.0"
4040
},
4141
"devDependencies": {
@@ -51,7 +51,7 @@
5151
"eslint": "^9.35.0",
5252
"globals": "^16.4.0",
5353
"prettier": "^3.6.2",
54-
"puppeteer": "^24.20.0",
54+
"puppeteer": "24.21.0",
5555
"sinon": "^21.0.0",
5656
"typescript": "^5.9.2",
5757
"typescript-eslint": "^8.43.0"

src/browser.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ export async function launch(options: McpLaunchOptions): Promise<Browser> {
113113
// your profile directory` instead.
114114
if (
115115
userDataDir &&
116-
(error as Error).message.includes(
117-
'(Target.setDiscoverTargets): Target closed',
118-
)
116+
(error as Error).message.includes('The browser is already running')
119117
) {
120118
throw new Error(
121119
`The browser is already running for ${userDataDir}. Use --isolated to run multiple browser instances.`,

tests/tools/input.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ describe('input', () => {
147147
return Number(button?.textContent);
148148
});
149149

150-
console.log(handlerResolveTime, buttonChangeTime);
151-
152150
assert(handlerResolveTime > buttonChangeTime, 'Waited for navigation');
153151
});
154152
});

0 commit comments

Comments
 (0)