Skip to content

replace 'npx' with 'node' on test-playwright.js file'#55616

Merged
gziolo merged 1 commit intoWordPress:trunkfrom
iamsadi22:fix/playwright-run-issue-on-flywheel
Nov 2, 2023
Merged

replace 'npx' with 'node' on test-playwright.js file'#55616
gziolo merged 1 commit intoWordPress:trunkfrom
iamsadi22:fix/playwright-run-issue-on-flywheel

Conversation

@iamsadi22
Copy link
Copy Markdown
Contributor

What?

This PR fixes the error encountered while running playwright tests on Flywheel Local.

Why?

After running test:e2e:playwright on a Flywheel local setup, an error is encountered with the message: "sh: /Users/test/Local: is a directory."

This error occurs because the plugin's absolute path is "/Users/test/Local Sites/*****," and the current command mistakenly removes the other parts of absolute path after space and interprets "Local" as a directory.

This PR addresses the issue by replacing npx with node, which resolves the error and allows the tests to run successfully.

Is this the correct way to run test on Local by Flywheel?

@github-actions
Copy link
Copy Markdown

Warning: Type of PR label error

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core.
  • Labels found: .

Read more about Type labels in Gutenberg.

@github-actions github-actions Bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Oct 25, 2023
@github-actions
Copy link
Copy Markdown

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

@gziolo gziolo added [Type] Bug An existing feature does not function as intended [Tool] WP Scripts /packages/scripts labels Oct 28, 2023
Copy link
Copy Markdown
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

Good catch, thank you for the fix.

@gziolo gziolo merged commit 72a5e83 into WordPress:trunk Nov 2, 2023
@github-actions github-actions Bot added this to the Gutenberg 17.0 milestone Nov 2, 2023
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 [Tool] WP Scripts /packages/scripts [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants