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

Give the option to seed / scaffold cypress files on new project through UI #3364

Closed
jennifer-shehane opened this issue Feb 7, 2019 · 6 comments
Labels
pkg/desktop-gui This is due to an issue in the packages/desktop-gui directory type: user experience Improvements needed for UX

Comments

@jennifer-shehane
Copy link
Member

Current behavior:

When running Cypress on a new project, Cypress automatically scaffolds out the cypress.json and cypress directory including example tests.

Desired behavior:

  • On first cypress open, open dialog that asks if the project owner wants the scaffolding done for their project - "Yes, I need help setting up Cypress on this project", "No thanks, I know what I'm doing."
  • Coupled with delivery of cypress init in the command line.
  • If no scaffolding selected - explain to user how to get scaffolding back. Maybe a button in the UI that links them to docs on how to re-seed the project / OR / can just prompt the seeding of the project...
  • If scaffolding selected - show modal of what was created in their project and where.
  • Update Test Runner docs and Files docs about scaffolding options.

Versions

Cypress 3.1.5

Full internal proposal: https://github.com/cypress-io/cypress-internal/issues/363

@jennifer-shehane jennifer-shehane added pkg/desktop-gui This is due to an issue in the packages/desktop-gui directory stage: work in progress type: user experience Improvements needed for UX labels Feb 7, 2019
@jennifer-shehane jennifer-shehane self-assigned this Feb 7, 2019
@jennifer-shehane
Copy link
Member Author

First design iteration:

scaffolding_comp

@brian-mann
Copy link
Member

brian-mann commented Feb 7, 2019

I think it's a bit overwhelming to display all the stuff we're about to do when they haven't actually chosen that yet.

I'm thinking more along the lines of giving them the Yes/No, but underneath it hinting at what we will be doing which helps them make a choice.

So maybe something like...

This looks like a new project - would you like us to help you set it up?

     [No Thanks]                             [Yes, help me]
(I know what I'm doing)             We'll add example cypress tests for you
                                    and explain how to organize your files.

If they click "Yes" then on the next screen we'd then give the user a confirmation of what we just did with some tips on what each folder does and what we put in there.

Really these would just be brief descriptions of what each one is used for.

@jennifer-shehane
Copy link
Member Author

New iteration

First modal

scaffolding_comp-intro-page

Second modal

I do not like this design - this should serve more as a starting off point for the design.

  • What is the appropriate content for each folder's explanation?
  • What's the best way to present this without slowing down the user's setup?
  • Should we/how do we link them to learn more?

scaffolding_comp-2nd-page

@jennifer-shehane
Copy link
Member Author

New simplified iteration/idea for 2nd page with understanding that:

  1. Only initializer of project will see this
  2. Improve internal readme / something to explain purpose of more advanced files

screen shot 2019-02-12 at 2 29 02 pm

@jennifer-shehane
Copy link
Member Author

The work for this is done in #18924 but it hasn't yet been released. This will be part of our 10.0 release.

@jennifer-shehane jennifer-shehane added help wanted and removed stage: ready for work The issue is reproducible and in scope help wanted labels Mar 31, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 1, 2022

Released in 10.0.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v10.0.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jun 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pkg/desktop-gui This is due to an issue in the packages/desktop-gui directory type: user experience Improvements needed for UX
Projects
None yet
Development

No branches or pull requests

3 participants