Skip to content

Conversation

@dgozman
Copy link
Contributor

@dgozman dgozman commented Jan 14, 2026

Based on #38760.

@dgozman dgozman requested a review from Skn0tt January 14, 2026 11:33
handleUncaughtExceptions: false,
retrieveSourceMap(source) {
if (source.startsWith('file://'))
source = source.substring('file://'.length);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for me things worked without this now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow, did not work for me. Perhaps it depends on how the loader worked though...

return `\n test(${escapeString(test.title)}, ${props}async ({ page, agent }) => {\n` +
test.lines.map(line => ' ' + line).join('\n') + `\n });\n`;
});
// TODO: proper source mapping for props
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's do it straight away, otherwise tests end up attributed to the wrong file. it's pretty straight-forward, make the annotations multi-line arrays and give each prop its own line

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh I see you dropped the newlines, so it won't break anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to follow up 😄 This does not affect the test location.

const result = `${importLine}\ntest.describe(${escapeString(parsed.describe)}, () => {${renderedTests.join('')}\n});\n`;
return result;
const encodedMap = genMapping.toEncodedMap(map);
const result = lines.join('\n');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why we add an inline sourcemap through babel, but not here. let's add a comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We return the map to be consumed by the caller, why would we add a inline one? I don't really understand what to write in the comment.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Skn0tt Skn0tt mentioned this pull request Jan 14, 2026
@dgozman dgozman force-pushed the feat-md-source-maps branch from 307ed22 to 650d241 Compare January 14, 2026 12:29
@github-actions
Copy link
Contributor

Test results for "tests 1"

7 failed
❌ [default] › debug-tests.spec.ts:380 › should run global setup before debugging @vscode-extension
❌ [default] › debug-tests.spec.ts:516 › should not pause at the end of a setup test @vscode-extension
❌ [default-reuse] › debug-tests.spec.ts:380 › should run global setup before debugging @vscode-extension
❌ [default-reuse] › debug-tests.spec.ts:516 › should not pause at the end of a setup test @vscode-extension
❌ [default-trace] › debug-tests.spec.ts:380 › should run global setup before debugging @vscode-extension
❌ [default-trace] › debug-tests.spec.ts:516 › should not pause at the end of a setup test @vscode-extension
❌ [playwright-test] › playwright.spec.ts:877 › page.pause() should disable test timeout @macos-latest-node20

6 flaky ⚠️ [chromium-library] › library/popup.spec.ts:258 › should not throw when click closes popup `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/video.spec.ts:377 › screencast › should capture navigation `@chromium-ubuntu-22.04-node20`
⚠️ [chromium-library] › library/browsertype-connect.spec.ts:935 › run-server › socks proxy › should proxy based on the pattern `@chromium-ubuntu-22.04-node22`
⚠️ [chromium-library] › library/inspector/cli-codegen-3.spec.ts:226 › cli codegen › should generate frame locators (4) `@chromium-ubuntu-22.04-node22`
⚠️ [firefox-page] › page/page-wait-for-function.spec.ts:104 › should work with strict CSP policy `@firefox-ubuntu-22.04-node20`
⚠️ [webkit-library] › library/har.spec.ts:163 › should include form params `@webkit-ubuntu-22.04-node20`

34444 passed, 696 skipped


Merge workflow run.

@github-actions
Copy link
Contributor

Test results for "MCP"

2822 passed, 116 skipped


Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants