rainlab / dusk-plugin Goto Github PK
View Code? Open in Web Editor NEWBrowser testing for October CMS, powered by Laravel Dusk.
License: Other
Browser testing for October CMS, powered by Laravel Dusk.
License: Other
Hello, I've installed Laravel Dusk following the official documentation. Then, I installed this plugin as per your documentation.
I had to retrieve the CreatesApplication.php file as indicated here. I disabled headless mode by commenting out the line in the driver() function of the DuskTestCase.php.
If I launch "php artisan dusk --filter TESTNAME", I get the page with the URL "data:,".
I checked "APP_URL" into .env.
composer.json:
{
//
"require": {
"php": "^8.0.2",
"october/rain": "^3.2",
"laravel/framework": "^9.0",
"october/all": "^3.1",
"rainlab/builder-plugin": "^1.2",
"rainlab/user-plugin": "^2.0",
"rainlab/dusk-plugin": "dev-main"
//
},
"require-dev": {
"phpunit/phpunit": "^8.5|^9.0",
"laravel/dusk": "^7.9"
},
//
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
//
}
$ chromium --version
Chromium 116.0.5845.140 snap
$ chromium.chromedriver --version
ChromeDriver 116.0.5845.140 (46fa58c804a9efde819900e8cee01821bde4576f-refs/branch-heads/5845@{#1610})
$ nginx -v
nginx version: nginx/1.22.0 (Ubuntu)
I'm using the official docker container of october 3.
I also installed the laravel dusk dependency and the dusk plugin.
php artisan dusk:chrome-driver
ChromeDriver binary successfully installed for version 116.0.5845.96.
But when I launch
php artisan test:dusk quivi.customers --browse
I receive:
1) *****\******\tests\browser\NavigationTest::testAuthentication
Facebook\WebDriver\Exception\Internal\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"capabilities":{"firstMatch":[{"browserName":"chrome","goog:chromeOptions":{"args":["--window-size=1920,1080"]}}]},"desiredCapabilities":{"browserName":"chrome","platform":"ANY","goog:chromeOptions":{"args":["--window-size=1920,1080"]}}}
Failed to connect to localhost port 9515: Connection refused
Any suggestion?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.