How to fix Playwright `net::ERR_NAME_NOT_RESOLVED` in `page.goto`?
PlaywrightERR_NAME_NOT_RESOLVED means DNS lookup failed for the URL host.
Verify baseURL, environment variables, and network access from the machine running tests.
import { test } from '@playwright/test';
test.use({ baseURL: 'https://staging.example.com' });
test('home loads', async ({ page }) => {
await page.goto('/');
});
In CI, confirm the host is reachable from the runner network, not only locally.