In this regard: Why does PhpBrowser from Codeception not follow the “Reboot” header?
I am using Laravel 4.1
I cannot pass tests that are redirected to another page, for example:
$I = new TestGuy($scenario);
$I->wantTo('be able to log in via the login form');
$I->amOnPage('/login');
$I->fillField('Email','test@student.com');
$I->fillField('Password','password');
$I->click('confirm');
$I->canSee('WELCOME Test Student');
The test fails with "Redirect to http: // ...." instead of a redirected page.
Redirects are performed using redirection :: route ($ name)
Seems to be a problem with PhpBrowser?
Any workarounds? Unable to find the latest information with the solution.
source
share