Skip to content

chore: use explicit matcher call context#34620

Merged
yury-s merged 1 commit intomicrosoft:mainfrom
pavelfeldman:matcher_context
Feb 5, 2025
Merged

chore: use explicit matcher call context#34620
yury-s merged 1 commit intomicrosoft:mainfrom
pavelfeldman:matcher_context

Conversation

@pavelfeldman
Copy link
Member

No description provided.

@github-actions

This comment has been minimized.

return function(this: any, ...args: any[]) {
const { isNot, promise, utils } = this;
const context = getMatcherCallContext();
const timeout = context.expectInfo.timeout ?? context?.testInfo?._projectInternal?.expect?.timeout ?? defaultExpectTimeout;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const timeout = context.expectInfo.timeout ?? context?.testInfo?._projectInternal?.expect?.timeout ?? defaultExpectTimeout;
const timeout = context.expectInfo.timeout ?? context.testInfo?._projectInternal?.expect?.timeout ?? defaultExpectTimeout;

@github-actions

This comment has been minimized.

wrappedMatchers[key] = wrappedMatchers[name];
Object.defineProperty(wrappedMatchers[key], 'name', { value: name });
extendedMatchers[name] = wrappedMatchers[key];
extendedMatchers[name] = matcher;
Copy link
Member

Choose a reason for hiding this comment

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

createExpect(info, qualifier, { ...customMatchers, ...matchers });

@yury-s yury-s merged commit 4b64c47 into microsoft:main Feb 5, 2025
29 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2025

Test results for "tests 1"

11 flaky ⚠️ [chromium-library] › tests/library/trace-viewer.spec.ts:1158:1 › should update highlight when typing locator @chromium-ubuntu-22.04-node22
⚠️ [firefox-page] › tests/page/page-evaluate.spec.ts:403:3 › should throw for too deep reference chain @firefox-ubuntu-22.04-node18
⚠️ [playwright-test] › tests/ui-mode-trace.spec.ts:341:5 › should work behind reverse proxy @ubuntu-latest-node18-1
⚠️ [webkit-library] › tests/library/debug-controller.spec.ts:103:1 › should report pages @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/proxy.spec.ts:63:3 › should work with IP:PORT notion @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/selector-generator.spec.ts:524:5 › selector generator › should generate exact role when necessary @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/trace-viewer.spec.ts:169:1 › should show action context on locators and other common actions @webkit-ubuntu-22.04-node18
⚠️ [webkit-page] › tests/page/page-leaks.spec.ts:82:5 › click should not leak @webkit-ubuntu-22.04-node18
⚠️ [webkit-page] › tests/page/page-leaks.spec.ts:107:5 › fill should not leak @webkit-ubuntu-22.04-node18
⚠️ [webkit-page] › tests/page/page-leaks.spec.ts:161:5 › waitFor should not leak @webkit-ubuntu-22.04-node18
⚠️ [playwright-test] › tests/ui-mode-test-watch.spec.ts:145:5 › should watch all @windows-latest-node18-1

37785 passed, 655 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