I have 1341 tests in total. I run them all once. But in all of them I get the following error.
BadMethodCallException: Call to undefined method [setActionCollector].
For example, I will share a test.
This test is working correctly without using Dusk Dashboard.
Also, my DuskTestCase file is as follows.
<?php
namespace Tests;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use BeyondCode\DuskDashboard\Testing\TestCase as BaseTestCase;
use Tests\Browser\Browser;
abstract class DuskTestCase extends BaseTestCase
{
use CreatesApplication;
/**
* Prepare for Dusk test execution.
*
* @beforeClass
*/
public static function prepare()
{
static::startChromeDriver();
}
/**
* Create the RemoteWebDriver instance.
*
* @return RemoteWebDriver
*/
protected function driver()
{
$options = (new ChromeOptions)->addArguments([
'--disable-gpu',
'--headless',
'--window-size=1920,1080',
]);
return RemoteWebDriver::create(
'http://localhost:9515',
DesiredCapabilities::chrome()->setCapability(
ChromeOptions::CAPABILITY,
$options
)
);
}
/**
* Create a new Browser instance.
*
* @param RemoteWebDriver $driver
*
* @return \Laravel\Dusk\Browser
*/
protected function newBrowser($driver)
{
return new Browser($driver);
}
}
I also run my tests from the php.dusk.xml file. What is the reason I got this error when everything looks right?
I have 1341 tests in total. I run them all once. But in all of them I get the following error.
BadMethodCallException: Call to undefined method [setActionCollector].
For example, I will share a test.This test is working correctly without using Dusk Dashboard.
Also, my DuskTestCase file is as follows.
I also run my tests from the php.dusk.xml file. What is the reason I got this error when everything looks right?