Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
When you run dotnet test, the test runner only executes the test assembly. Rod, did you remember to start the web host on your laptop before executing the test runner? What you describe is exactly what happens when you try to access localhost:port when the application server is not running.
I am also making the assumption that your development lifecycle requires successful testing locally on the dev machine before deploying to a remote server. We need to know what BaseUrl is configured in the test project:
Is the test project sending HTTP requests to localhost? If so, your Wi-Fi connection speed is irrelevant. If the local web server isn't actively running and listening on that exact port, every test (and manual browser attempt) will simply hang and time out. Take a look at the browser's address bar when the test runs.
If your intention is to run tests against a remote web server, is the BaseUrl configured for that remote endpoint? If so, why clone the application source code to the laptop? Just to run tests? Furthermore, public Wi-Fi networks frequently block non-standard ports, throttle traffic, or suffer high packet loss that easily triggers Playwright's default 30-second navigation timeouts.
Clarifying whether your target is localhost or remote—and verifying that the host process was actually active—will pinpoint why the laptop failed.