in yii2 codeception acceptance test using phantomjs browser.
started server
phantomjs --webdriver=4444
when running test
codecept run
it isn't working expected.
code is:
class logincest { public function ensurethatloginworks(acceptancetester $i) { $i->amonpage(url::toroute('/site/login')); $i->see('enq','b'); } }
when changing to
$i->amonpage(url::toroute(['/../../../site/login']));
its works fine because takes url myapp/web/usr/local/bin/site/login
its adding automatically usr/local/bin
is there solution apart $i->amonpage(url::toroute(['/../../../site/login']));
worked fine whe replacing
$i->amonpage(url::toroute(['/../../../site/login']));
with this
$i->amonpage('/site/login');
Comments
Post a Comment