How to enable Dusk Test, open Chrome to view the whole process Is there any way to let Dusk Test to open Chrome to view the whole Test process.
Current Dusk only have option --headless for show the Chrome windows when it is fail.
I would like to view the whole Testing Progress to really see what happen. Is it possible?
I think you just need to remove the --headless option from the driver() method within DuskTestCase.php:
protected function driver()
{
$options = (new ChromeOptions)->addArguments([
'--disable-gpu',
// '--headless'
]);
return RemoteWebDriver::create(
'http://localhost:9515', DesiredCapabilities::chrome()->setCapability(
ChromeOptions::CAPABILITY, $options
)
);
}
Thanks for your reply.
I had remove it. Remove --headless option. It only prompt Chrome browser when the test is failed.
What I am looking for is I want to see the whole testing progress. From beginning to the end.
OK, I found the solution.
@Talinon you are right by removed --headless option.
My issues because I am running the test case in iTerm2 (Full Windows Mode), the Chrome browser actually running behind the windows.
What I have to do is make it regular windows, then I can see the whole testing process.
Thank you.
Please sign in or create an account to participate in this conversation.