Skip to content

Dusk freezes in Sail when using 2 browsers as per the documentation #1159

Open
@pbourdet

Description

@pbourdet

Dusk Version

8.2.14

Laravel Version

11.41.3

PHP Version

8.4.3

PHPUnit Version

11.5.6

Database Driver & Version

Ver 8.0.32 for Linux on aarch64 (MySQL Community Server - GPL

Description

Hello,

When following the documentation for testing with multiple browsers (for testing a chat with WebSockets for exemple), starting my dusk tests in sail do not work : it freezes until I stop it and will always freeze afterwards (event if I remove the tests with multiple browsers) and will only work again after I restart the docker containers.

Documentation for reference : https://laravel.com/docs/11.x/dusk#creating-multiple-browsers

I'm currently trying on a M2 Mac, but faced the same issue on my windows PC in WSL2.

Steps To Reproduce

Here is a fresh repository that will reproduces the issue : https://github.com/pbourdet/laravel-sail-dusk.

  • Launch the dusk tests using sail dusk
  • See the command freeze

To create this repository I followed theses instructions :

  • curl -s "https://laravel.build/laravel-dusk-sail" | bash
  • cd laravel-dusk-sail
  • sail artisan migrate
  • sail composer require laravel/dusk --dev
  • sail artisan dusk:install
  • Modify the default test to use 2 browsers in tests/Browser/ExampleTest.php
  • sail dusk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions