-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add e2e CLI test for blitz new
#37
Comments
@flybayer |
@flybayer was this issue resolved in blitz-js/blitz#1846? |
@markhughes no, that PR just added an empty cypress set up (no tests) |
I want to test
|
Ah, responding to prompts is a good question. Probably we should add flags like |
I think we shouldn't have to copy the template. Running |
I agree with it. |
@wafuwafu13 If you get stuck with this one, i'm happy to help you out! |
Thank you :) |
@wafuwafu13 can you push up the branch in your fork so I can see your current progress and then I'll be able to make a suggestion :) |
Sorry, I'm very busy lately, so I don't have any current progress :-( |
@markhughes go ahead and work on this if you want |
Happy to take this and work on it, went through the earlier discussion and PR, seems there's a set up for cypress without any tests. I'd like to add some test cases if someone can point at what is to be tested. |
Hey @maybebored, as Brandon mentioned in the issue, this is roughly what needs to be tested (you can only cover some of those, and that would be a huge help already!):
Here's the code of the |
Hi @flybayer, I want to work on 2.Test blitz build success inside new app
I would like to get a help to know how to create a new app by the test. Can you provide more explanation please ? |
Hey @Redaloukil, here are a few links that can be helpful:
Let us know if you have any more questions! |
What do you want and why?
We currently have a few
blitz new
tests, but not a complete e2e test for the new app.We want to:
blitz build
success inside new appyarn test
success inside new app.skip
fromapp/pages/index.test.tsx
to ensure that test passesyarn lint
has no errors or warningsblitz start --production
since we already ranblitz build
above)6. Test user sign up
7. Test user log out
8. Test user duplicate email signup (correct message displayed)
8. Test user log in
Possible implementation(s)
Add Cypress to our CLI testing setup. See the Redwood CLI cypress test for a great example/starting point.
Other
You don't have to add all the above tests in one PR. You can just add as much as you have time/energy for. First person needs to add cypress and very basic initial test.
The text was updated successfully, but these errors were encountered: