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

[Bug]: Screenshots timing out when using chrome extension in new headless mode #33770

Open
jeff-an opened this issue Nov 26, 2024 · 0 comments
Open

Comments

@jeff-an
Copy link

jeff-an commented Nov 26, 2024

Version

1.44.1, 1.48.2

Steps to reproduce

Minimal reproduction is available in this pull request in my public demo repository: jeff-an/playwright-shadow-dom-repro#1. The main Playwright script is here while the github action workflow is defined here.

The failure can be seen in the Github actions failure, which only attempts to take a screenshot of Google.com but fails.

The Chrome extension being used is the popular https://darkreader.org/. It works totally fine on my official Chrome build and on Chromium when ran on my Mac OS laptop. However, it does not work when running on Linux.

Interestingly this flow used to work last week and I don't think I changed the Playwright version used or any dependencies. Maybe something on the default Github Actions runners changed?

Expected behavior

Screenshot should succeed within a reasonable time.

Actual behavior

Screenshot fails after 3 seconds. Tried the following:

  • increasing timeout
  • PW_TEST_SCREENSHOT_NO_FONTS_READY = 1
  • Google chrome official channel
  • A bunch of different browser args (see in

Additional context

No response

Environment

System:
    OS: Linux 6.5 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (4) x64 AMD EPYC [7](https://github.com/jeff-an/playwright-shadow-dom-repro/actions/runs/12031941610/job/33542600882?pr=1#step:6:8)763 64-Core Processor
    Memory: 14.48 GB / 15.61 GB
    Container: Yes
  Binaries:
    Node: 20.1[8](https://github.com/jeff-an/playwright-shadow-dom-repro/actions/runs/12031941610/job/33542600882?pr=1#step:6:9).1 - /opt/hostedtoolcache/node/20.18.1/x64/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: [10](https://github.com/jeff-an/playwright-shadow-dom-repro/actions/runs/12031941610/job/33542600882?pr=1#step:6:11).8.2 - /opt/hostedtoolcache/node/20.18.1/x64/bin/npm
  Languages:
    Bash: 5.1.16 - /usr/bin/bash
  npmPackages:
    @playwright/test: ^1.48.2 => 1.48.2
@jeff-an jeff-an changed the title [Bug]: Screenshots timing out when using chrome extension in new headless [Bug]: Screenshots timing out when using chrome extension in new headless mode Nov 26, 2024
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