Skip to content

Conversation

@dgozman
Copy link
Contributor

@dgozman dgozman commented Oct 24, 2025

No description provided.

@github-actions
Copy link
Contributor

Test results for "MCP"

2570 passed, 108 skipped


Merge workflow run.

@github-actions
Copy link
Contributor

Test results for "tests 1"

4 flaky ⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1079 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node18`
⚠️ [firefox-page] › page/page-goto.spec.ts:83 › should work with Cross-Origin-Opener-Policy `@firefox-ubuntu-22.04-node18`
⚠️ [chromium-library] › library/beforeunload.spec.ts:130 › should support dismissing the dialog multiple times `@ubuntu-22.04-chromium-tip-of-tree`
⚠️ [playwright-test] › ui-mode-test-output.spec.ts:80 › should show console messages for test `@ubuntu-latest-node24-1`

47161 passed, 815 skipped


Merge workflow run.

} else {
let previous = typeof previousChild !== 'string' ? previousChild : undefined;
if (child.ref)
previous = previousByRef.get(child.ref);
Copy link
Member

Choose a reason for hiding this comment

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

The way I read it, I can reorder child nodes and it'll yield the truthy result, yet you have it tested. Why does it work?

return aKeys.length === bKeys.length && aKeys.every(k => a.props[k] === b.props[k]);
}
// Returns whether ariaNode is the same as previousNode.
const visit = (ariaNode: AriaNode, previousNode: AriaNode | undefined): boolean => {
Copy link
Member

Choose a reason for hiding this comment

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

I'm growing increasingly unsympathetic towards rendering via delta. I think we should have a simple code path that does a simple thing and a complex code path that does complex things. If we need helper functions for it, let's introduce them beforehand.

const escapedKey = indent + '- ' + yamlEscapeKeyIfNeeded(key);
const inCursorPointer = renderCursorPointer && !!ariaNode.ref && hasPointerCursor(ariaNode);
const singleInlinedTextChild = getSingleInlinedTextChild(ariaNode);
// Replace the whole subtree with a single reference when possible.
Copy link
Member

Choose a reason for hiding this comment

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

Is this a part of compareSnapshots?

@dgozman dgozman merged commit 1a06851 into microsoft:main Oct 24, 2025
35 checks passed
agg23 added a commit to agg23/playwright that referenced this pull request Oct 27, 2025
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