Skip to content

Commit e8394ab

Browse files
chore(deps-dev): bump the bundled group with 2 updates (#481)
Bumps the bundled group with 2 updates: [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk) and [puppeteer](https://github.com/puppeteer/puppeteer). Updates `@modelcontextprotocol/sdk` from 1.20.1 to 1.20.2 <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/7098bff073d78cfaee40869897d84a5929c29570"><code>7098bff</code></a> chore: bump version for weekly release (<a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/issues/1042">#1042</a>)</li> <li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/c54309598505007c4467f78fa7dfb3e7c763679c"><code>c543095</code></a> fix: Zod to JSONSchema pipe strategies (<a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/issues/962">#962</a>)</li> <li>See full diff in <a href="https://github.com/modelcontextprotocol/typescript-sdk/compare/1.20.1...1.20.2">compare view</a></li> </ul> </details> <br /> Updates `puppeteer` from 24.26.0 to 24.26.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/puppeteer/puppeteer/releases">puppeteer's releases</a>.</em></p> <blockquote> <h2>puppeteer-core: v24.26.1</h2> <h2><a href="https://github.com/puppeteer/puppeteer/compare/puppeteer-core-v24.26.0...puppeteer-core-v24.26.1">24.26.1</a> (2025-10-22)</h2> <h3>🛠️ Fixes</h3> <ul> <li><strong>a11y:</strong> expose the url property for links (<a href="https://redirect.github.com/puppeteer/puppeteer/issues/14357">#14357</a>) (<a href="https://github.com/puppeteer/puppeteer/commit/93d098b060771dbd1e6875f4664273604022f3bd">93d098b</a>)</li> <li>roll to Chrome 141.0.7390.122 (<a href="https://redirect.github.com/puppeteer/puppeteer/issues/14360">#14360</a>) (<a href="https://github.com/puppeteer/puppeteer/commit/f2fef816f234bd30a13bb86dfc654f29f5cb2f6b">f2fef81</a>)</li> </ul> <h2>puppeteer: v24.26.1</h2> <h2><a href="https://github.com/puppeteer/puppeteer/compare/puppeteer-v24.26.0...puppeteer-v24.26.1">24.26.1</a> (2025-10-22)</h2> <h3>♻️ Chores</h3> <ul> <li><strong>puppeteer:</strong> Synchronize puppeteer versions</li> </ul> <h3>Dependencies</h3> <ul> <li>The following workspace dependencies were updated <ul> <li>dependencies <ul> <li>puppeteer-core bumped from 24.26.0 to 24.26.1</li> </ul> </li> </ul> </li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md">puppeteer's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/puppeteer/puppeteer/compare/puppeteer-v24.26.0...puppeteer-v24.26.1">24.26.1</a> (2025-10-22)</h2> <h3>♻️ Chores</h3> <ul> <li><strong>puppeteer:</strong> Synchronize puppeteer versions</li> </ul> <h3>Dependencies</h3> <ul> <li>The following workspace dependencies were updated <ul> <li>dependencies <ul> <li>puppeteer-core bumped from 24.26.0 to 24.26.1</li> </ul> </li> </ul> </li> </ul> <h3>🛠️ Fixes</h3> <ul> <li><strong>a11y:</strong> expose the url property for links (<a href="https://redirect.github.com/puppeteer/puppeteer/issues/14357">#14357</a>) (<a href="https://github.com/puppeteer/puppeteer/commit/93d098b060771dbd1e6875f4664273604022f3bd">93d098b</a>)</li> <li>roll to Chrome 141.0.7390.122 (<a href="https://redirect.github.com/puppeteer/puppeteer/issues/14360">#14360</a>) (<a href="https://github.com/puppeteer/puppeteer/commit/f2fef816f234bd30a13bb86dfc654f29f5cb2f6b">f2fef81</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/puppeteer/puppeteer/commit/6e2348c27e3493e53b609122888e0950d342e4d2"><code>6e2348c</code></a> chore: release main (<a href="https://redirect.github.com/puppeteer/puppeteer/issues/14359">#14359</a>)</li> <li><a href="https://github.com/puppeteer/puppeteer/commit/21f309239909548b390b7e851d481ff832899e35"><code>21f3092</code></a> test: fix move to ESM (<a href="https://redirect.github.com/puppeteer/puppeteer/issues/14362">#14362</a>)</li> <li><a href="https://github.com/puppeteer/puppeteer/commit/5fe1333769dd7bf28b239db308d67f3402633da2"><code>5fe1333</code></a> test: move to ESM (<a href="https://redirect.github.com/puppeteer/puppeteer/issues/14358">#14358</a>)</li> <li><a href="https://github.com/puppeteer/puppeteer/commit/f2fef816f234bd30a13bb86dfc654f29f5cb2f6b"><code>f2fef81</code></a> fix: roll to Chrome 141.0.7390.122 (<a href="https://redirect.github.com/puppeteer/puppeteer/issues/14360">#14360</a>)</li> <li><a href="https://github.com/puppeteer/puppeteer/commit/93d098b060771dbd1e6875f4664273604022f3bd"><code>93d098b</code></a> fix(a11y): expose the url property for links (<a href="https://redirect.github.com/puppeteer/puppeteer/issues/14357">#14357</a>)</li> <li>See full diff in <a href="https://github.com/puppeteer/puppeteer/compare/puppeteer-v24.26.0...puppeteer-v24.26.1">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nikolay Vitkov <nvitkov@chromium.org>
1 parent 43897af commit e8394ab

File tree

5 files changed

+85
-72
lines changed

5 files changed

+85
-72
lines changed

package-lock.json

Lines changed: 18 additions & 18 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
@@ -39,7 +39,7 @@
3939
"mcpName": "io.github.ChromeDevTools/chrome-devtools-mcp",
4040
"devDependencies": {
4141
"@eslint/js": "^9.35.0",
42-
"@modelcontextprotocol/sdk": "1.20.1",
42+
"@modelcontextprotocol/sdk": "1.20.2",
4343
"@rollup/plugin-commonjs": "^28.0.8",
4444
"@rollup/plugin-json": "^6.1.0",
4545
"@rollup/plugin-node-resolve": "^16.0.3",
@@ -59,7 +59,7 @@
5959
"eslint-plugin-import": "^2.32.0",
6060
"globals": "^16.4.0",
6161
"prettier": "^3.6.2",
62-
"puppeteer": "24.26.0",
62+
"puppeteer": "24.26.1",
6363
"rollup": "4.52.5",
6464
"rollup-plugin-cleanup": "^3.2.1",
6565
"rollup-plugin-license": "^3.6.0",

tests/McpResponse.test.js.snapshot

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
exports[`McpResponse > returns correctly formatted snapshot for a simple tree 1`] = `
2+
# test response
3+
## Page content
4+
uid=1_0 RootWebArea "My test page" url="about:blank"
5+
uid=1_1 button "Click me" focusable focused
6+
uid=1_2 textbox value="Input"
7+
8+
`;
9+
10+
exports[`McpResponse > returns values for textboxes 1`] = `
11+
# test response
12+
## Page content
13+
uid=1_0 RootWebArea "My test page" url="about:blank"
14+
uid=1_1 StaticText "username"
15+
uid=1_2 textbox "username" focusable focused value="mcp"
16+
17+
`;
18+
19+
exports[`McpResponse > returns verbose snapshot 1`] = `
20+
# test response
21+
## Page content
22+
uid=1_0 RootWebArea "My test page" url="about:blank"
23+
uid=1_1 ignored
24+
uid=1_2 ignored
25+
uid=1_3 complementary
26+
uid=1_4 StaticText "test"
27+
uid=1_5 InlineTextBox "test"
28+
29+
`;
30+
31+
exports[`McpResponse > saves snapshot to file 1`] = `
32+
# test response
33+
## Page content
34+
Saved snapshot to <file>
35+
`;
36+
37+
exports[`McpResponse > saves snapshot to file 2`] = `
38+
uid=1_0 RootWebArea "My test page" url="about:blank"
39+
uid=1_1 ignored
40+
uid=1_2 ignored
41+
uid=1_3 complementary
42+
uid=1_4 StaticText "test"
43+
uid=1_5 InlineTextBox "test"
44+
45+
`;

tests/McpResponse.test.ts

Lines changed: 17 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ import {tmpdir} from 'node:os';
99
import {join} from 'node:path';
1010
import {describe, it} from 'node:test';
1111

12-
import {getMockRequest, getMockResponse, html, withBrowser} from './utils.js';
12+
import {
13+
getMockRequest,
14+
getMockResponse,
15+
html,
16+
stabilizeResponseOutput,
17+
withBrowser,
18+
} from './utils.js';
1319

1420
describe('McpResponse', () => {
1521
it('list pages', async () => {
@@ -51,7 +57,7 @@ Testing 2`,
5157
});
5258
});
5359

54-
it('returns correctly formatted snapshot for a simple tree', async () => {
60+
it('returns correctly formatted snapshot for a simple tree', async t => {
5561
await withBrowser(async (response, context) => {
5662
const page = context.getSelectedPage();
5763
await page.setContent(
@@ -65,19 +71,11 @@ Testing 2`,
6571
response.includeSnapshot();
6672
const result = await response.handle('test', context);
6773
assert.equal(result[0].type, 'text');
68-
assert.strictEqual(
69-
result[0].text,
70-
`# test response
71-
## Page content
72-
uid=1_0 RootWebArea "My test page"
73-
uid=1_1 button "Click me" focusable focused
74-
uid=1_2 textbox value="Input"
75-
`,
76-
);
74+
t.assert.snapshot?.(result[0].text);
7775
});
7876
});
7977

80-
it('returns values for textboxes', async () => {
78+
it('returns values for textboxes', async t => {
8179
await withBrowser(async (response, context) => {
8280
const page = context.getSelectedPage();
8381
await page.setContent(
@@ -91,19 +89,11 @@ uid=1_0 RootWebArea "My test page"
9189
response.includeSnapshot();
9290
const result = await response.handle('test', context);
9391
assert.equal(result[0].type, 'text');
94-
assert.strictEqual(
95-
result[0].text,
96-
`# test response
97-
## Page content
98-
uid=1_0 RootWebArea "My test page"
99-
uid=1_1 StaticText "username"
100-
uid=1_2 textbox "username" focusable focused value="mcp"
101-
`,
102-
);
92+
t.assert.snapshot?.(result[0].text);
10393
});
10494
});
10595

106-
it('returns verbose snapshot', async () => {
96+
it('returns verbose snapshot', async t => {
10797
await withBrowser(async (response, context) => {
10898
const page = context.getSelectedPage();
10999
await page.setContent(html`<aside>test</aside>`);
@@ -112,22 +102,11 @@ uid=1_0 RootWebArea "My test page"
112102
});
113103
const result = await response.handle('test', context);
114104
assert.equal(result[0].type, 'text');
115-
assert.strictEqual(
116-
result[0].text,
117-
`# test response
118-
## Page content
119-
uid=1_0 RootWebArea "My test page"
120-
uid=1_1 ignored
121-
uid=1_2 ignored
122-
uid=1_3 complementary
123-
uid=1_4 StaticText "test"
124-
uid=1_5 InlineTextBox "test"
125-
`,
126-
);
105+
t.assert.snapshot?.(result[0].text);
127106
});
128107
});
129108

130-
it('saves snapshot to file', async () => {
109+
it('saves snapshot to file', async t => {
131110
const filePath = join(tmpdir(), 'test-screenshot.png');
132111
try {
133112
await withBrowser(async (response, context) => {
@@ -139,25 +118,10 @@ uid=1_0 RootWebArea "My test page"
139118
});
140119
const result = await response.handle('test', context);
141120
assert.equal(result[0].type, 'text');
142-
console.log(result[0].text);
143-
assert.strictEqual(
144-
result[0].text,
145-
`# test response
146-
## Page content
147-
Saved snapshot to ${filePath}.`,
148-
);
121+
t.assert.snapshot?.(stabilizeResponseOutput(result[0].text));
149122
});
150123
const content = await readFile(filePath, 'utf-8');
151-
assert.strictEqual(
152-
content,
153-
`uid=1_0 RootWebArea "My test page"
154-
uid=1_1 ignored
155-
uid=1_2 ignored
156-
uid=1_3 complementary
157-
uid=1_4 StaticText "test"
158-
uid=1_5 InlineTextBox "test"
159-
`,
160-
);
124+
t.assert.snapshot?.(stabilizeResponseOutput(content));
161125
} finally {
162126
await rm(filePath, {force: true});
163127
}
@@ -492,6 +456,7 @@ No requests found.`,
492456
];
493457
};
494458
const result = await response.handle('test', context);
459+
495460
assert.strictEqual(
496461
result[0].text,
497462
`# test response

tests/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,8 @@ export function stabilizeResponseOutput(text: unknown) {
170170
// sec-ch-ua-platform:"Linux"
171171
const chUaPlatformRegEx = /sec-ch-ua-platform:"[a-zA-Z]*"/g;
172172
output = output.replaceAll(chUaPlatformRegEx, 'sec-ch-ua-platform:"<os>"');
173+
174+
const savedSnapshot = /Saved snapshot to (.*)/g;
175+
output = output.replaceAll(savedSnapshot, 'Saved snapshot to <file>');
173176
return output;
174177
}

0 commit comments

Comments
 (0)