Skip to content

[Bug]: All tests for Firefox fail with Error: browserContext.newPage: Test timeout of 30000ms exceeded. #41347

Description

@tkanka12

Version

1.60.1

Steps to reproduce

  1. Install playwright in an empty folder - npm init playwright@latest and accept default options (except Add a GitHub Actions workflow?)
  2. run default tests npx playwright test

Expected behavior

Firefox tests succeed

Actual behavior

Firefox tests fail

Image Image

Additional context

config file:

import { defineConfig, devices } from '@playwright/test';

/**
 * Read environment variables from file.
 * https://github.com/motdotla/dotenv
 */
// import dotenv from 'dotenv';
// import path from 'path';
// dotenv.config({ path: path.resolve(__dirname, '.env') });

/**
 * See https://playwright.dev/docs/test-configuration.
 */
export default defineConfig({
  testDir: './tests',
  /* Run tests in files in parallel */
  fullyParallel: true,
  /* Fail the build on CI if you accidentally left test.only in the source code. */
  forbidOnly: !!process.env.CI,
  /* Retry on CI only */
  retries: process.env.CI ? 2 : 0,
  /* Opt out of parallel tests on CI. */
  workers: process.env.CI ? 1 : undefined,
  /* Reporter to use. See https://playwright.dev/docs/test-reporters */
  reporter: 'html',
  /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
  use: {
    /* Base URL to use in actions like `await page.goto('')`. */
    // baseURL: 'http://localhost:3000',

    /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
    trace: 'on-first-retry',
  },

  /* Configure projects for major browsers */
  projects: [
    {
      name: 'chromium',
      use: { ...devices['Desktop Chrome'] },
    },

    {
      name: 'firefox',
      use: { ...devices['Desktop Firefox'] },
    },

    {
      name: 'webkit',
      use: { ...devices['Desktop Safari'] },
    },
});

list of browsers

Output of `npx playwright install --list

npx playwright install --list

Playwright version: 1.60.0
  Browsers:
    C:\Users\XXX\AppData\Local\ms-playwright\chromium-1223
    C:\Users\XXX\AppData\Local\ms-playwright\chromium_headless_shell-1223
    C:\Users\XXX\AppData\Local\ms-playwright\ffmpeg-1011
    C:\Users\XXX\AppData\Local\ms-playwright\firefox-1522
    C:\Users\XXX\AppData\Local\ms-playwright\webkit-2287
    C:\Users\XXX\AppData\Local\ms-playwright\winldd-1007
  References:
    C:\Users\XXX\dev\litfin\lemunzo\pw-test\node_modules\playwright-core

// Output of `npx playwright install --dry-run

Chrome for Testing 148.0.7778.96 (playwright chromium v1223)
  Install location:    C:\Users\XXX\AppData\Local\ms-playwright\chromium-1223
  Download url:        https://cdn.playwright.dev/builds/cft/148.0.7778.96/win64/chrome-win64.zip

Chrome Headless Shell 148.0.7778.96 (playwright chromium-headless-shell v1223)
  Install location:    C:\Users\XXX\AppData\Local\ms-playwright\chromium_headless_shell-1223
  Download url:        https://cdn.playwright.dev/builds/cft/148.0.7778.96/win64/chrome-headless-shell-win64.zip

Firefox 150.0.2 (playwright firefox v1522)
  Install location:    C:\Users\XXX\AppData\Local\ms-playwright\firefox-1522
  Download url:        https://cdn.playwright.dev/dbazure/download/playwright/builds/firefox/1522/firefox-win64.zip
  Download fallback 1: https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/firefox/1522/firefox-win64.zip
  Download fallback 2: https://cdn.playwright.dev/builds/firefox/1522/firefox-win64.zip

WebKit 26.4 (playwright webkit v2287)
  Install location:    C:\Users\XXX\AppData\Local\ms-playwright\webkit-2287
  Download url:        https://cdn.playwright.dev/dbazure/download/playwright/builds/webkit/2287/webkit-win64.zip
  Download fallback 1: https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/webkit/2287/webkit-win64.zip
  Download fallback 2: https://cdn.playwright.dev/builds/webkit/2287/webkit-win64.zip

FFmpeg (playwright ffmpeg v1011)
  Install location:    C:\Users\XXX\AppData\Local\ms-playwright\ffmpeg-1011
  Download url:        https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-win64.zip
  Download fallback 1: https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-win64.zip
  Download fallback 2: https://cdn.playwright.dev/builds/ffmpeg/1011/ffmpeg-win64.zip

Winldd (playwright winldd v1007)
  Install location:    C:\Users\XXX\AppData\Local\ms-playwright\winldd-1007
  Download url:        https://cdn.playwright.dev/dbazure/download/playwright/builds/winldd/1007/winldd-win64.zip
  Download fallback 1: https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/winldd/1007/winldd-win64.zip
  Download fallback 2: https://cdn.playwright.dev/builds/winldd/1007/winldd-win64.zip

Environment

System:
    OS: Windows 11 10.0.26200
    CPU: (8) x64 Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz
    Memory: 24.55 GB / 47.61 GB
  Binaries:
    Node: 24.16.0 - C:\Program Files\nodejs\node.EXE
    npm: 11.13.0 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    @playwright/test: ^1.60.0 => 1.60.0

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