Giter Club home page Giter Club logo

laravel-visual-testing's Issues

Pest + Dusk + Sail

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?

Support Laravel 6.x

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.