Skip to content

CT onboarding hangs waiting for dependency installation #26685

Description

@MikeMcC399

Current behavior

When dependencies have been installed during CT onboarding, the Cypress App continues to wait showing a spinner with the text "Waiting for you to install the dependencies...". It does not exit this condition and requires the Cypress App to be restarted to continue. After restart, the Front-end framework is detected and onboarding continues successfully.

image

Desired behavior

Onboarding should automatically and dynamically check dependency installation as it did up until Cypress 12.7.0.

After choosing a front-end framework during CT onboarding, for instance Next.js, the Cypress App displays a command, such as npm install -D next react react-dom, together with a spinner with the text "Waiting for you to install the dependencies...".

Now if the command to install packages is executed in a separate terminal window, the spinner and text disappear. The message displaying the command to execute disappears and is replaced with a text saying "You've successfully installed all required dependencies"

image

Test code to reproduce

git init
npm init -y
npm install cypress -D -E
npx cypress open

Select Component Testing
Select Next.js, click Next step

In a separate terminal window copy and paste
npm install -D next react react-dom

The Cypress App waits showing a spinner with the text "Waiting for you to install the dependencies...". This does not change even when the dependencies have been installed.

Cypress Version

12.11.0 (and 12.12.0)

Node version

18.16.0

Operating System

Ubuntu 22.04 (also reproducible on Windows 11)

Debug Logs

`cypress:scaffold-config:frameworks` is not detecting the dependencies

Other

Workaround

Kill then restart the Cypress App after installing dev dependencies.

Metadata

Metadata

Assignees

Labels

CTIssue related to component testingTriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions