liip / liip/e2e-tests-example-wp-plugin

net::ERR_CONNECTION_REFUSED at http://localhost:8889/wp-admin/

Open
#5 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I've simply cloned this repo, run npm install then npm run test:e2e. However, I'm seeing many of the following errors:

> npm run test:e2e

> e2e-tests-example@1.0.0 test:e2e C:\Users\marty\Sites\nmis-wp\wp-content\plugins\e2e-tests-example-wp-plugin
> wp-scripts test-e2e

 FAIL  e2e-tests/wrapper-block.spec.js (14.704s)
  ● Wrapper block › Wrapper block should be available

    net::ERR_CONNECTION_REFUSED at http://localhost:8889/wp-admin/post-new.php

      at navigate (node_modules/puppeteer/lib/FrameManager.js:120:37)
        -- ASYNC --
      at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:111:15)
      at Page.goto (node_modules/puppeteer/lib/Page.js:675:49)
      at Page.goto (node_modules/puppeteer/lib/helper.js:112:23)
      at _callee$ (node_modules/@wordpress/e2e-test-utils/build/@wordpress/e2e-test-utils/src/visit-admin-page.js:20:13)
      at tryCatch (node_modules/regenerator-runtime/runtime.js:45:40)
      at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:271:22)
      ...

I can't see where post 8889 has been declared. I followed the readme instructions to the word. I'm guessing this is a server that is initiated during the running of the tests? Any help? Thanks

I'm running:
Windows 10

npm -v
6.14.4
node -v
v10.20.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the README's E2E setup instructions and e2e-tests/wrapper-block.spec.js, then run npm run test:e2e while checking the expected WordPress admin URL and test environment configuration. Done means the test suite can reach /wp-admin/post-new.php instead of returning net::ERR_CONNECTION_REFUSED.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, wordpress
Domain
testing-qa, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.