Closed mossmoss closed 3 years ago
Hi @mossmoss -- first, good on you for having a cool github handle! Second double good on you for attempting to make playwright work with backstop! I would love to help but I have sooo little time. I will try to review this tomorrow. Feel free to bug me. Peace!
I know I am super late to respond to this -- but I finally looked at these logouts. The first thing that came to mind is I wondered if just using playwright and safari (without backstop) works on Linux? I assume you already tried that and worked through the issue. Sorry I wasn't much help here.
Hi Garris, Thanks for circling back to this. I should have updated the issue. It turns out using a different version of playwright seems to have resolved the issue without having to change the --no-sandbox option - though my colleagues are more familiar with the issue. We switched from playwright focal to bionic. I'm not sure why it helped. Our Docker host is running on CentOS 7.9.2009 - which may be a reason changing playwright versions helped? Thanks again for your response!
I asked this on Playwright's github, a contributor there advised not sending the --no-sandbox arg to webkit (I have tried that), and asking for help here. I realize this might not be a BackstopJS issue, but appreciate any help. Here's the issue I posted to Playwright:
We're using the latest (playwright:focal) Docker image of playwright (and have also tried with playwright:v1.8.0-focal) along with some code that tries to run BackstopJS with playwright:
https://github.com/zhumingcheng697/Backstop-Playwright
We can run tests successfully with Chromium and Firefox but see the following when trying to test with webkit:
The code we're running with node looks like this at the start (I see the --no-sandbox option) but haven't been able to change it to something that works:
Removing this:
Results in:
Using:
Results in:
We're running Docker version 20.10.7, build f0df350 on CentOS Linux release 7.9.2009 (Core) - the Ubuntu version of the playwright image is Ubuntu 20.04.2 LTS.