Jun 28, 2021
0
Level 5
Dusk not showing green status on correct test
Hi, My dusk test was alright before. It used to show me green status in my terminal and red whenever test fails. But now on correct test it showing this message instead of green status. My test is correct. Need your help. Thanks
example
public function testExample()
{
$this->browse(function (Browser $browser) {
$browser->loginAs(User::find(1))
->visit('/forms')
->assertSee('Forms');
;
});
}
error in terminal
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Console/Command.php:183
/Users/ranj/Sites/tvc/vendor/symfony/console/Command/Command.php:255
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Console/Command.php:170
/Users/ranj/Sites/tvc/vendor/symfony/console/Application.php:1009
/Users/ranj/Sites/tvc/vendor/symfony/console/Application.php:273
/Users/ranj/Sites/tvc/vendor/symfony/console/Application.php:149
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Console/Application.php:90
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Console/Application.php:182
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:275
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Foundation/Testing/PendingCommand.php:136
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Foundation/Testing/PendingCommand.php:220
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/InteractsWithConsole.php:56
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Foundation/Testing/DatabaseMigrations.php:21
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestCase.php:232
/Users/ranj/Sites/tvc/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestCase.php:148
ERRORS!
Tests: 1, Assertions: 7, Errors: 1.
Ranj:tvc ranj$
Please or to participate in this conversation.