This is an unofficial package to bring Percy to your Laravel testsuite, we are in no way related to Percy.io
This package allows you to easily use Percy in your existing Laravel testsuite
npm install --save-dev @percy/cli
or
yarn add --dev @percy/cli
composer require --dev letspaak/laravel-percy
PERCY_TOKEN=aaabbbcccdddeeefff
By default we use Laravel's Dusk package to capture our webpages that we send to Percy.
// Visit the homepage and send the snapshot to Percy
$browser->visit('/')->snapshot('Homepage')
After your tests are created, run them as follows:
npx percy exec -- php artisan dusk
This package is heavily based on Percy's Java implementation
The MIT License (MIT). Please see License File for more information.