-1

After I updated my computer with latest ubuntu, yarn and composer suddenly my playwright test --ui stopped working as it should. All buttons is hidden and input fields not showing upp, all text in source field is gone etc. Has anyone else experienced the same issue and found a solution?

I think it can be some kind of iframe/input issue?! I found a solution and it was to roll back the update using this:

yarn add --dev @playwright/[email protected]

https://yarnpkg.com/package?q=%40playwright%2Ftest&name=%40playwright%2Ftest A link to all versions. Image on the issue

6
  • Why the php or docker-compose tags? In any case, can you run the tests from the command line? Do the tests succeed or do they actually fail? Try running them with --trace on to generate a trace explicitly and the view it with npx playwright show-report. Commented Sep 4 at 8:11
  • Maybe I should remove them but thought maybe they were relevant. My mistake! I run the trace on now. I promise I keep you posted! *hehe Commented Sep 4 at 8:17
  • Don't use the yarn tag at all. You saw as you typed it that there are better options and no other question uses the yarn tag. Just yarn is unclear - is it the Hadoop scheduler? The package manager? Commented Sep 4 at 8:39
  • But I use yarn?! Yarn playwright, just to be clear. But this conversation doesn't solve the problem anyway. :) Commented Sep 4 at 9:31
  • All of your versions (Node/PW/Ubuntu) should be in the question here--"latest Ubuntu" is unclear to future visitors, as well as what version you were on that worked previously. The goal is reproducibility: someone should be able to install those versions, run the command and see the same problem as you. Thanks! Commented Sep 4 at 14:00

2 Answers 2

1

have you tried to reinstall Playwright browsers and dependencies:

npx playwright install --with-deps

or

npx playwright uninstall
npx playwright install --with-deps

Playwright requires refreshing bins after update.

Update with

npm install playwright @playwright/test@latest --save-dev

If any errors appear about specific packages like libvpx7, libevent-2.1-7, or libasound2, manually install missing system libraries. These packages may not be present by default after the system update.

Sign up to request clarification or add additional context in comments.

3 Comments

Yes, I tried except I'm using yarn. I'm now running yarn playwright --version Version 1.55.0 also node:"v22.19.0" so I think everything is up to date.
OK - so you tried: yarn playwright install --with-deps, check if you have all required Ubuntu libraries installed for Playwright browsers: libwoff1, libgobject-2.0, libglib-2.0
you can also try removing the node_modules folder and yarn.lock file, then reinstalling all dependencies fresh: rm -rf node_modules yarn.lock yarn install yarn playwright install
1

This solved the problem!
It was a bug in the newest installed version of playwright so I rollbacked to:
yarn add --dev @playwright/[email protected]

https://yarnpkg.com/package?q=%40playwright%2Ftest&name=%40playwright%2Ftest
A link to all versions.

1 Comment

How did you find out it's a bug? Is this documented somewhere? A link to the Github issue would help others that may be affected by the same problem.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.