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 columns test case to Playwright #43964

Merged
merged 5 commits into from
Oct 31, 2022

Conversation

alvitazwar
Copy link
Contributor

@alvitazwar alvitazwar commented Sep 7, 2022

What?

Based on #38570, part of #38851. Migrate columns.test.js to its Playwright counterpart.

Why?

See #38570 for its background and rationale.

This is split into a new PR for easier review.

How?

See #38570 for the proposed migration steps.

Testing Instructions

npm run test:e2e:playwright /test/e2e/specs/editor/blocks/columns.spec.js

Screencast

Screen.Recording.2022-09-30.at.3.41.41.PM.mov

@github-actions
Copy link

github-actions bot commented Sep 7, 2022

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @alvitazwar! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Sep 7, 2022
@skorasaurus skorasaurus added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Sep 7, 2022
@alvitazwar
Copy link
Contributor Author

@ntwb, @nerrad can you please review this?

@alvitazwar
Copy link
Contributor Author

@kevin940726 Can you please review this PR?

@Mamaduka
Copy link
Member

Mamaduka commented Oct 3, 2022

Thanks for contributing, @alvitazwar!

While Playwright migration looks mostly good, I don't think it's testing the same case as the old test.

The previous tests confirm that Block Inserter only displays allowed blocks for the Columns.

Screenshot

CleanShot 2022-10-03 at 13 40 07

@alvitazwar
Copy link
Contributor Author

@Mamaduka
Please check now

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.

Thanks, @alvitazwar!

I left some notes. Let me know if you have any questions regarding them.

test/e2e/specs/editor/blocks/columns.spec.js Outdated Show resolved Hide resolved
test/e2e/specs/editor/blocks/columns.spec.js Outdated Show resolved Hide resolved
test/e2e/specs/editor/blocks/columns.spec.js Outdated Show resolved Hide resolved
@Mamaduka Mamaduka removed the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Oct 27, 2022
@Mamaduka
Copy link
Member

@alvitazwar, I noticed that the tests also cause lint errors. We should fix that before we can merge.

@Mamaduka Mamaduka changed the title Add Columns Test Case Migrate columns test case to Playwright Oct 28, 2022
@alvitazwar
Copy link
Contributor Author

@Mamaduka I addressed your feedbacks and fix lint errors please check now

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, @alvitazwar!

@Mamaduka Mamaduka merged commit f047c29 into WordPress:trunk Oct 31, 2022
@github-actions github-actions bot added this to the Gutenberg 14.5 milestone Oct 31, 2022
@alvitazwar
Copy link
Contributor Author

@Mamaduka thanks for the support. Really thanks a lot

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.

3 participants