4

与此相关:为什么 Codeception 的 PhpBrowser 不遵循“重新加载”标题?

我正在使用 Laravel 4.1

我无法通过重定向到另一个页面的测试,例如:

$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');

测试失败并显示“重定向到 http:// ....”而不是重定向到的页面。

重定向由 Redirect::route($name) 执行

似乎是 PhpBrowser 的问题?

任何解决方法?找不到任何带有解决方案的最新信息。

4

0 回答 0