I have a comment component in my laravel application, that fetches all comments via api call on page load and if you comment on that page it will save it and display the recently created comment. Actually really basic.
To be sure I wrote a dusk test that tests the behavior above. Locally my tests runs perfectly fine.
Somehow on Gitlab it failes and I get the following error:
{
"level": "SEVERE",
"message": "http:\/\/localhost\/api\/v1\/topredmedia\/comments\/comment - Failed to load resource: the server responded with a status of 500 (Internal Server Error)",
"source": "network",
"timestamp": 1568381130190
}
Unfortunately it seems that every api call and calls to get images are failing.
Versions: laravel/framework: 5.8 Laravel/dusk: 5.3 phpunit/phpunit: 7.5
For my dusk tests I use the chilio/laravel-dusk-ci package
I've already tried to add some options to the driver method in my DuskTestCase (the last 4).
protected function driver()
{
$options = (new ChromeOptions)->addArguments([
'--disable-gpu',
'--headless',
'--no-sandbox',
'--ignore-certificate-errors',
'--allow-insecure-localhost',
'--ignore-urlfetcher-cert-requests',
'--reduce-security-for-testing'
]);
return RemoteWebDriver::create(
'http://localhost:9515',
DesiredCapabilities::chrome()->setCapability(
ChromeOptions::CAPABILITY, $options
)
);
}
Aucun commentaire:
Enregistrer un commentaire