Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pbourdet opened this issue Feb 3, 2025 · 0 comments
Open

Comments

@pbourdet
Copy link

pbourdet commented Feb 3, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant