lmiller1990 / cypress-react-template

Component Testing with Cypress and React
15 stars 12 forks source link

cypress run-ct yields Timed out waiting for the browser to connect. Retrying... #4

Closed PhillipRC closed 3 years ago

PhillipRC commented 3 years ago

Unable to get cypress run-ct to work

Steps

Output

yarn run v1.22.10
$ C:\code\tmp\cypress-react-template\node_modules\.bin\cypress run-ct

[@cypress/webpack-dev-server]: removing HtmlWebpackPlugin from configuration.
i 「wds」: Project is running at http://localhost:65044/webpack-dev-server/
i 「wds」: webpack output is served from /__cypress/src
i 「wds」: Content not from webpack is served from C:\code\tmp\cypress-react-template

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:    7.1.0                                                                              │
  │ Browser:    Electron 89 (headless)                                                             │
  │ Specs:      2 found (App.spec.tsx, CustomCommand.spec.tsx)                                     │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  App.spec.tsx                                                                    (1 of 2)
i 「wdm」: Hash: 287765d5c464d48fcd78
Version: webpack 4.44.2
Time: 7277ms
Built at: 04/24/2021 10:59:29 AM
                                       Asset       Size                 Chunks                         Chunk Names
                         asset-manifest.json  747 bytes                         [emitted]
                                  index.html  409 bytes                         [emitted]
                             runtime-main.js   36.4 KiB           runtime-main  [emitted]              runtime-main
                         runtime-main.js.map   37.8 KiB           runtime-main  [emitted] [dev]        runtime-main
                     static/js/main.chunk.js   3.47 KiB                   main  [emitted]              main
                 static/js/main.chunk.js.map   2.25 KiB                   main  [emitted] [dev]        main
                   static/js/spec-0.chunk.js   20.8 KiB                 spec-0  [emitted]              spec-0
               static/js/spec-0.chunk.js.map   17.8 KiB                 spec-0  [emitted] [dev]        spec-0
                   static/js/spec-1.chunk.js   2.02 KiB                 spec-1  [emitted]              spec-1
               static/js/spec-1.chunk.js.map  647 bytes                 spec-1  [emitted] [dev]        spec-1
    static/js/vendors~spec-0~spec-1.chunk.js    1.1 MiB  vendors~spec-0~spec-1  [emitted]              vendors~spec-0~spec-1
static/js/vendors~spec-0~spec-1.chunk.js.map   1.18 MiB  vendors~spec-0~spec-1  [emitted] [dev]        vendors~spec-0~spec-1
              static/media/logo.6ce24c58.svg   2.57 KiB                         [emitted] [immutable]
Entrypoint main = runtime-main.js runtime-main.js.map static/js/main.chunk.js static/js/main.chunk.js.map
[./node_modules/@cypress/mount-utils/dist/index.js] 4.05 KiB {vendors~spec-0~spec-1} [built]
[./node_modules/@cypress/react/dist/cypress-react.esm-bundler.js] 10.2 KiB {vendors~spec-0~spec-1} [built]
[./node_modules/@cypress/webpack-dev-server/dist/aut-runner.js] 473 bytes {main} [built]
[./node_modules/@cypress/webpack-dev-server/dist/browser.js] 73 bytes {main} [built]
[./node_modules/@cypress/webpack-dev-server/dist/loader.js!./node_modules/@cypress/webpack-dev-server/dist/browser.js] 983 bytes {main} [built]
[./node_modules/react-dom/index.js] 1.32 KiB {vendors~spec-0~spec-1} [built]
[./node_modules/react/cjs/react-jsx-dev-runtime.development.js] 40.6 KiB {vendors~spec-0~spec-1} [built]
[./node_modules/react/cjs/react.development.js] 77.9 KiB {vendors~spec-0~spec-1} [built]
[./node_modules/react/index.js] 189 bytes {vendors~spec-0~spec-1} [built]
[./node_modules/react/jsx-dev-runtime.js] 221 bytes {vendors~spec-0~spec-1} [built]
[./src/App.css] 1.97 KiB {spec-0} [built]
[./src/App.spec.tsx] 447 bytes {spec-0} [built]
[./src/App.tsx] 1.51 KiB {spec-0} [built]
[./src/CustomCommand.spec.tsx] 717 bytes {spec-1} [built]
[./src/logo.svg] 74 bytes {spec-0} [built]
    + 9 hidden modules
Child HtmlWebpackCompiler:
                          Asset      Size               Chunks  Chunk Names
    __child-HtmlWebpackPlugin_0  4.76 KiB  HtmlWebpackPlugin_0  HtmlWebpackPlugin_0
    Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
    [./node_modules/html-webpack-plugin/lib/loader.js!./node_modules/@cypress/webpack-dev-server/index-template.html] 551 bytes {HtmlWebpackPlugin_0} [built]
i 「wdm」: Compiled successfully.

Timed out waiting for the browser to connect. Retrying...
Done in 76.30s.
lmiller1990 commented 3 years ago

Hi. We had some windows specific issues. 7.2.0 was just released - I updated the dependencies - can you give this another try?

Thanks for trying this out!

PhillipRC commented 3 years ago

The results look good! 🎉

Steps

====================================================================================================

  (Run Finished)

       Spec                                              Tests  Passing  Failing  Pending  Skipped
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ √  App.spec.tsx                             00:01        1        1        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ √  CustomCommand.spec.tsx                   132ms        1        -        -        1        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ √  NewJsxTransform.spec.tsx                 280ms        1        1        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    √  All specs passed!                        00:02        3        2        -        1        -

Done in 180.66s.