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

Migrated nux.test.js to Playwright #39772

Closed
wants to merge 6 commits into from

Conversation

sandeshjangam
Copy link
Contributor

What?

Based on #38570, part of #38851. New User Experience (nux) nux.test.js to its Playwright counterpart.

Note - This PR is dependent on #39748 PR. This PR or the required "create-post" utils file is required.

Why?

Migration to Playwright

How?

Migration to Playwright

Testing Instructions

npm run test-e2e:playwright -- test/e2e/specs/editor/various/nux.spec.js

Screenshots or screencast

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Mar 25, 2022
@github-actions
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @sandeshjangam! 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.

@sandeshjangam
Copy link
Contributor Author

@kevin940726 Can you please add it in #38851 ?

Your input is appreciated.

@kevin940726
Copy link
Member

Is this PR ready for review? I can see that there's still some temporary commented code.

@sandeshjangam
Copy link
Contributor Author

@kevin940726 PR is now ready to review. Removed all unwanted comments and code.

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.

Thank you for making the PR!

Have you read the best practices guide yet? I noticed that we're still using class names and XPath selectors rather than using accessible role selectors in the tests. (We could refactor them in the future though, but I'd prefer to refactor them as we're migrating 🙂)

@@ -37,7 +37,7 @@ const config: PlaywrightTestConfig = {
strictSelectors: true,
},
storageState: STORAGE_STATE_PATH,
actionTimeout: 10_000, // 10 seconds.
actionTimeout: 20_000, // 20 seconds.
Copy link
Member

Choose a reason for hiding this comment

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

Why do we want to change this?

@skorasaurus skorasaurus added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Apr 9, 2022
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jan 4, 2024
@Mamaduka Mamaduka removed their assignment Jan 4, 2024
@Mamaduka Mamaduka removed the [Status] In Progress Tracking issues with work in progress label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [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.

4 participants