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 Adding Patterns Test to Playwright #50083

Merged

Conversation

pooja-muchandikar
Copy link
Contributor

What?

Part of #38851.
Migrate adding-patterns.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/various/adding-patterns.spec.js

Copy link
Member

@kevin940726 kevin940726 left a comment

Choose a reason for hiding this comment

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

Great work! Thanks!

await expect.poll( editor.getBlocks ).toMatchObject( [
{
name: 'core/social-links',
attributes: { className: 'has-icon-color' },
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I don't think we need this. I think we only want to check if it's a social-links block.

Suggested change
attributes: { className: 'has-icon-color' },

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed the feedback!

@pooja-muchandikar
Copy link
Contributor Author

Hi @kevin940726,

Thanks for the suggestions, I have addressed those but seems like the CI is failing but its not due to my test case, but its failing for template-part.spec.js test case. Could you please take a look?

image

Thanks!

@Mamaduka Mamaduka merged commit c9874e4 into WordPress:trunk Apr 26, 2023
@github-actions github-actions bot added this to the Gutenberg 15.8 milestone Apr 26, 2023
@pooja-muchandikar pooja-muchandikar deleted the migrate/adding-pattern-test branch April 27, 2023 02:30
@bph bph added the [Package] E2E Tests /packages/e2e-tests label May 8, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants