beyondcode / dusk-dashboard

A beautiful dashboard for your Laravel Dusk tests
https://pociot.dev/8-introducing-laravel-dusk-dashboard
MIT License
558 stars 62 forks source link

JS Dialog not seen ? #46

Closed robov closed 8 months ago

robov commented 5 years ago

I get this error when running my test Facebook\WebDriver\Exception\UnexpectedAlertOpenException: unexpected alert open: {Alert text :

However when I derive my DuskTestCase from the original one use Laravel\Dusk\TestCase as BaseTestCase; I do not get this error...

My testscript expects the alert open, and uses $browser->acceptDialog(); to close it

robov commented 5 years ago

This code only works when I derive from the starndard, when I derive from the package this breaks with unexpected alert

            $browser->waitForDialog(5);
            $browser->acceptDialog(); // do the delete