Flash message assertion fails on login test #4113
Unanswered
danielh-official
asked this question in
Help
Replies: 2 comments 2 replies
-
Because you are catching the exception and not letting the |
Beta Was this translation helpful? Give feedback.
2 replies
-
@danielh-official I think the problem lies in the fact that when you're creating the user, you're overwriting the password column to literally contain 'password1' and not the hashed form of 'password1'. I may be wrong here but I believe your controller doesn't successfully login at all |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my auth controller, I have the following login method:
I'm testing a successful login:
When running
yarn test
ornode ace test
, I get the following error:Why is the flash messages object empty?
Beta Was this translation helpful? Give feedback.
All reactions