-
Notifications
You must be signed in to change notification settings - Fork 278
Only works on first scenario #196
Comments
No same problem on Linux? Does it work when you swap 2 scenarios? |
It doesn't. However I found it to be working when I removed the base_url from my behat.yml file. Even though that doesn't make sense (to me at least), as it prints out the same url :-/ |
@jazerix which Mink driver are you using ? |
I'm unsure. This is my behat.yml file :)
|
Can you give me the link to this Laracasts extension ? It is probably the one giving a |
Certainly :) This is the repo https://github.com/laracasts/Behat-Laravel-Extension |
the issue is the way they are implementing their Mink driver: https://github.com/laracasts/Behat-Laravel-Extension/blob/205a3d217d33d4315d20d0f3497edd65a8b5443e/src/Driver/KernelDriver.php#L23 Here, they are calling the constructor again but without the second argument. this is why subsequent scenarios are broken. |
In that case I'm sorry for the inconvenience. I've opened an issue there :) thanks for the help ^^ |
Closing this issue because it is not in MinkExtension itself and the discussion should continue on laracasts |
I'm currently trying to run behat on windows. I'm running into a problem where only the first scenario works, even though the next one is identical to the first one.
I'm dumping the response headers when printing the current url, and it's totally different.
The output is also completely different.
First result gives me this:
![enter image description here](https://camo.githubusercontent.com/827e1021bc3a0ee297adc9c879a4ffba5f8a00255100ce799b03d62db289f4a1/687474703a2f2f6936312e74696e797069632e636f6d2f73337a6472342e706e67)
The the second one (which is identical to the previous one).
![enter image description here](https://camo.githubusercontent.com/9da4c62b3b305af1f0980cd8061a24059dc7be030fe2cb5123231c34e6029173/687474703a2f2f6936322e74696e797069632e636f6d2f323632736662362e706e67)
I'm using MinkContext with Laravel
The text was updated successfully, but these errors were encountered: