Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore warnings for window.wp in Playwright #45598

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

kevin940726
Copy link
Member

What?

Ignore TypeScript warnings for accessing window.wp in Playwright's evaluate functions.

Why?

Until window.wp can be typed, which I think would probably take a long time to mature, I think it's a good idea to silence the warnings for now.

How?

Declare window.wp as any in @wordpress/e2e-test-utils-playwright.

Testing Instructions

CI should pass, TypeScript build should pass.

@kevin940726 kevin940726 added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Nov 8, 2022
@kevin940726 kevin940726 requested a review from Mamaduka November 8, 2022 04:00
@codesandbox
Copy link

codesandbox bot commented Nov 8, 2022

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

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

Makes sense. Thanks, @kevin940726!

@kevin940726 kevin940726 merged commit 3d49843 into trunk Nov 8, 2022
@kevin940726 kevin940726 deleted the add/window-wp-type-in-playwright branch November 8, 2022 05:40
@github-actions github-actions bot added this to the Gutenberg 14.6 milestone Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants