-
Notifications
You must be signed in to change notification settings - Fork 13
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
Component testing setup #72
Comments
I propose this alternate solution instead of adding a new question Modify the following to this multi-select question "Would you like to set up Nightwatch for additional functionalities?"
This way we have 1 less question and it also can become more scalable in the future as we can add more options such as VRT, A11y or Unit testing. Thoughts @beatfactor? |
That question wouldn't be necessary anymore, so it would be replaced by first setup prompt. Also we should move away from the questions style into the more active tone style, which is done in this PR. The benefit of having the multi-select choices upfront is that it also makes it very clear to users that Nightwatch is a complete testing solution which can do end2end/mobile/component testing rather than an end2end solution which happens to have some additional functionality that users may or may not need. |
I like what @beatfactor is suggesting, only one doubt remains, what happens if the used selects only mobile testing? |
On a second thought, we should have the end to end question so that users don't get confused. There is no way someone is going to skip the question. So keep it as a default value. I think @beatfactor is right, have the initial multi-select, and remove the last mobile question. Once mobile app is available, that can be added to the first list. |
We need to add an onboarding process for setting up the various component testing plugins. I would suggest also to add 3 different options at the start (before the test runner selection), with multi-select.
This will affect many of the rest of the questions/prompts.
Component testing
plugins
array is populated with the selected pluginvite.config.js
/vite.config.ts
config file is created which loads thevite-plugin-nightwatch
vite_dev_server
settings block which looks like:localhost:5173
nightwatch
folder needs to contain anindex.jsx
file -- https://nightwatchjs.org/guide/component-testing/write-jsx-react-tests.html#loading-static-assetshttp://localhost:6006
'stories/*.stories.jsx'
The text was updated successfully, but these errors were encountered: