Closed EmiM closed 2 years ago
It would be great to get this fixed!
Hi @EmiM ,
This error occurs because testcafe-browser-provider-electron requires the installed Window Manager to be able to take screenshots. Here is a workflow example, which installs Fluxbox before running tests: https://github.com/Dmitry-Ostashev/electron-quick-start/blob/e2e-tests/.github/workflows/functional-testcafe-action.yml .
Hi, I'm running one e2e electron test on CI. I decided to enable
screenshots-on-fails
to discover why the test fails (it passes locally). Turned out that I can't do that because:I use
DevExpress/testcafe-action@latest
. The whole output is here: https://github.com/ZbayApp/ZbayLite/runs/4356621701?check_suite_focus=trueBelow the 'NativeBinary(...)" error you can see other error saying that "The file at (...) already exists" but it's misleading as the
screenshots
directory is empty.Notes:
xvfb-run --server-args="-screen 0 1280x720x24" npx testcafe --color --hostname localhost -p '${DATE}_${TIME}_${TEST_ID}.png' -S --screenshots-full-page "electron:." "./**/*.e2e.js
(the same command as used on CI) locally and it failed too, providing identical error