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

Migrate Allowed Block Test to Playwright #53171

Merged

Conversation

pooja-muchandikar
Copy link
Contributor

What?

Part of #38851.
Migrate allowed-blocks.test.js to its Playwright version.

Why?

Part of #38851.

How?

See MIGRATION.md for migration steps.

Testing Instructions

Run npm run test-e2e:playwright test/e2e/specs/editor/plugins/allowed-blocks.spec.js

@Mamaduka Mamaduka added [Package] E2E Tests /packages/e2e-tests [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. labels Jul 31, 2023
@pooja-muchandikar
Copy link
Contributor Author

Hi @Mamaduka,

I hope you are doing great!

Could you please review this PR? And let me know if there are any suggestions.

Thanks!

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.

Hi, @pooja-muchandikar

I'll try to do a more in-depth review later this week, but at a glance, I think there's room to improve locators and assertions.

Some of those are already covered in the block editor handbook - https://developer.wordpress.org/block-editor/contributors/code/testing-overview/e2e/.

@pooja-muchandikar
Copy link
Contributor Author

Sure @Mamaduka! Thanks for sharing I will work and push the changes.

@pooja-muchandikar
Copy link
Contributor Author

Hi @Mamaduka,

All feedbacks are been addressed!

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.

Thank you, @pooja-muchandikar!

I left few more notes, but in general migration looks good 👍

test/e2e/specs/editor/plugins/allowed-blocks.spec.js Outdated Show resolved Hide resolved
test/e2e/specs/editor/plugins/allowed-blocks.spec.js Outdated Show resolved Hide resolved
test/e2e/specs/editor/plugins/allowed-blocks.spec.js Outdated Show resolved Hide resolved
@Mamaduka Mamaduka merged commit afc73ee into WordPress:trunk Aug 1, 2023
49 checks passed
@github-actions github-actions bot added this to the Gutenberg 16.4 milestone Aug 1, 2023
@pooja-muchandikar pooja-muchandikar deleted the migrate/allowed-blocks-test branch August 2, 2023 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] E2E Tests /packages/e2e-tests [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
2 participants