stechstudio / laravel-visual-testing Goto Github PK
View Code? Open in Web Editor NEWVisual UI screenshot testing with Laravel Dusk using percy.io
License: MIT License
Visual UI screenshot testing with Laravel Dusk using percy.io
License: MIT License
I am trying to get this setup with a new Laravel App.
I am using Laravel sail to develop in docker and I have Pest and Laravel Dusk setup and working. (php artisan dusk --pest --without-percy
works perfectly)
Now I wanted to add this but when I run php artisan dusk --pest
I receive this error message:
[percy] Config file not found
[percy] created build #3: https://percy.io/1e6dcf4c/esg-radar/builds/12960345
Error: Failed to launch the browser process!
/var/www/html/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
It seems that percy does not know anything about the remote selenium instance nor how to use it.
Do you see a way we could get this working? Or is this a lost cause?
I notice that the @percy/agent
project is no longer supported and they are urging users to migrate to @percy/cli
:
This package has been deprecated
Author message:@percy/agent is no longer supported. Please upgrade to @percy/cli https://docs.percy.io/docs/migrating-to-percy-cli
Are there any plans on upgrading laravel-visual-testing
to use percy's new tooling?
Unfortunately, the latest Dusk release (https://github.com/laravel/dusk/releases/tag/v6.14.0) seems to make this package useless. I hope this can be resolved soon?
Thanks anyway for the helpful visual testing opportunity!
This package currently fails with Call to undefined function STS\VisualTesting\Console\starts_with()
when running on Laravel 6+.
Many array and string helpers were removed in Laravel 6, and now have to be called as static class functions. For example: starts_with()
is now only Str::startsWith()
and array_get()
is now only Arr:get()
.
I found a fork by @alvaxet which addresses at least some of this: https://github.com/alvaxet/laravel-visual-testing/commit/676d3f3e00455d9defa5b8407aa2c489c9fadebe and will be digging a bit deeper starting now...
UPDATE: alvaxet's PR only addresses one of the two helpers in the codebase, so I have created my own fork, fixed both, and opened a PR: #3
Will this package work with Dusk 7.4?
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.