You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 21e005c
Browse filesBrowse the repository at this point in the historyBrowse files
Compare the served widget with the release artifact so a fallback shell cannot satisfy packaging checks.
verification: QA suite passed 35 tests with 3 skips, fallback regression failed before the fix and passed after, version sync and plugin validation passed
Copy file name to clipboardExpand all lines: plugins/qa/references/runner.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ Export `cases` from `.agents/qa/suite.mjs`. Each has `id`, `surface`, optional `
38
38
|`qa.captureAudio(page)`| Scripted microphone and played-audio meter for voice pages, see [voice](voice.md). Call before navigation |
39
39
|`qa.tabTo(locator, {timeout} = {})`| Reach a Playwright locator by pressing Tab from the current focus, with a 30-second default budget. Use before keyboard activation. Assert the resulting focus, navigation or saved state in the journey. |
40
40
|`qa.overflow(page)`| Up to five `tag#id.class right=<px>` elements past the viewport's right edge, `[]` when the page has no horizontal scroll. Assert with `deepEqual(…, [])`|
@@ -47,7 +49,7 @@ The helpers default to MCP `2026-07-28`. Pass `protocolVersion: '2025-11-25'` to
47
49
| --- | --- |
48
50
|`qa.mcp.discoverOAuth(endpoint, {expectedIssuer, expectedResource, extraProtectedResourcePaths, timeoutMs})`| Follow the anonymous GET bearer challenge to same-origin protected resource metadata and check RFC 8414 metadata and S256. Defaults the resource to the endpoint. Set the issuer explicitly for a separate auth origin. Pass extra PRM paths to check aliases. Returns `{protectedResource, authorizationServer}`|
49
51
|`qa.mcp.call(endpoint, {token, method, params, protocolVersion, headers})`| Send one JSON-RPC POST with protocol headers and metadata. Returns `{status, headers, body, result, error, chars}`. Body is JSON or text, with `null` for an SSE response closed on receipt. Supply your own `qa.assert` on the outcome of this raw call |
50
-
|`qa.mcp.assertServerContract(endpoint, {token, protocolVersion, requiredTools, requireProfileTool, requireIcons, requireWebsite, requireDescription, maxInstructionsParagraph, maxResultChars})`| Check anonymous challenges, authenticated GET and DELETE, foreign Origin rejection, discovery, paginated tool lists and referenced view metadata. Opt into branding and profile checks. The default limits are 512 characters in the first instructions paragraph and 100,000 per discovery and tool payload. Returns `{serverInfo, instructions, tools}`|
52
+
|`qa.mcp.assertServerContract(endpoint, {token, protocolVersion, requiredTools, requireProfileTool, requireIcons, requireWebsite, requireDescription, maxInstructionsParagraph, maxResultChars, expectedAppHashes})`| Check anonymous challenges, authenticated GET and DELETE, foreign Origin rejection, discovery, paginated tool lists and referenced view metadata. Opt into branding and profile checks. Pass `expectedAppHashes` as a map from tool name to the SHA-256 hex digest of its built HTML. The default limits are 512 characters in the first instructions paragraph and 100,000 per discovery and tool payload. Returns `{serverInfo, instructions, tools}`|
51
53
|`qa.mcp.assertToolCall(endpoint, {token, name, arguments, expectError, maxChars, protocolVersion})`| Check a JSON tool result or expected tool or JSON-RPC error. Returns the raw call shape. The default budget is 100,000 characters measured on the serialized result or error |
52
54
|`qa.mcp.assertOAuthNegativeBoundaries(baseUrl, {registerEndpoint, authorizeEndpoint, tokenEndpoint, protectedResource})`| Check invalid registration if a DCR URL is provided, unsafe authorization redirects, and rejection of unsupported grants or fake credentials. Endpoint options accept absolute URLs or paths relative to the base URL. Uses synthetic values, with no valid registration or token exchange |
When testing release packaging, compute the hash from the build output before calling the server. A fallback shell can have valid MCP metadata and still serve different HTML. For an app URI that embeds a content hash, also check the URI against the build's naming rule.
Exercise the result budget with a large fixture. The Go MCP SDK can add `_meta["io.modelcontextprotocol/serverInfo"]` and `resultType` after the handler returns. Leave room for those fields in the handler's budget and use `assertToolCall` to check the final response.
0 commit comments