-
Notifications
You must be signed in to change notification settings - Fork 321
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
loginAs() method doesn't hit the internal Dusk endpoint #210
Comments
The issue seems to be a little bit deeper than I previously thought. I'll give you the full scenario here:
And now my observations:
It seems like some issue with sessions, but I'm not sure what could be the problem here. |
Take a look at discussion on #100 |
I'm having the same problem. Everything after the click method will error.
|
@axyr That's not the same problem. Your Google Chrome is crashing. Check if there's any screenshot of the crash in the folder. |
Ok. hm sry. I thought it was related because the issue both occurs when testing authentication. but yes I read it wrong. |
@pavoltanuska you still need support? Can this be closed? |
Well, I don't need further support, since there are workarounds in the thread you've linked here (thanks for that). And as #100 probably covers this issue better, I agree that this can be closed. |
When I try to log the user in via
$browser->loginAs(1)
method, the request isn't received by Dusk's UserController.However, if I hit the endpoint manually in my test via
$browser->visit('/_dusk/login/1')
everything works correctly.I can confirm, that Dusk emits the request via
Browser->visit($url)
in both cases, but the request sent by theloginAs()
method never reaches the UserController.I'm willing to help and provide more info, but I'm not sure how to debug this one further.
Edit: It seems that both of these requests need to be made, to make the test work. See the next comment for details
The text was updated successfully, but these errors were encountered: