Closed umpirsky closed 10 years ago
Interesting. I think, that it's MinkExtension
that should append base url from .behat.yml
to the relative url, specified in the scenario step. I wonder why it doesn't do that this time.
This code is responsible for injecting base_url
into final URL: https://github.com/Behat/MinkExtension/blob/8a47abd34f59f2c366aa95cae922540e1c4b1bfe/src/Behat/MinkExtension/Context/RawMinkContext.php#L124-L129 and it does that when url is detected as relative (no http
word in it).
@aik099 Thanks for your response.
This is not called at all. It is visible in trace I posted, that RawMinkContext
is not in the call trace.
It is visible in trace I posted, that RawMinkContext is not in the call trace.
According to these lines
#4 src/Sylius/Bundle/WebBundle/Behat/WebContext.php(83): Behat\Mink\Session->visit('/')
#5 [internal function]: Sylius\Bundle\WebBundle\Behat\WebContext->iAmOnTheStoreHomepage()
your feature context class doesn't extend MinkContext
(which has RawMinkContext
as super class). That's why it doesn't work.
@aik099 Fixed in https://github.com/umpirsky/Sylius/commit/c34b2f30fdb90e54be6268d1e3320bfed8484c81. Thanks.
Glad, that we're able to dig to problem's root so fast. Thanks.
Yes. Thank you @aik099.
Hi.
I am trying to run some javascript scenarios on Sylus where we use Behat3.
From my composer.json:
I get errors which basicaly tell me that base url is not set.
With Firefox 30:
With Firefox 25.0 and verbose output:
Part of my behat.yml:
Am I missing something?