Closed markmetcalfe closed 3 months ago
@markmetcalfe sorry to hear there has been issues setting this up! Thanks for providing the details. I'll investigate this today and will let you know if I need any more info from you.
@markmetcalfe Looking at your Playwright Config, I noticed that you are not running tests in Chrome. We require that you run your Playwright tests in Chromium because we use the Chrome Debugger Protocol for generating the necessary test results.
Describe the bug I'm unable to run
npx chromatic --playwright --project-token=chpt_2***5
after runningnpx playwright test
as specified in the setup docs for initializing a chromatic playwright project.I get the following error output from the console:
This is directly after running
npx playwright test
, which results in thetest-results/
directory containing a single file of.last-run.json
, which has the contents ofThis is with the following package versions:
@chromatic-com/playwright
:0.6.11
@playwright/test
:1.42.1
chromatic
:11.5.3
This is my
playwright.config.ts
,package.json
, andpnpm-lock.yaml
- on this branchTo Reproduce
git clone https://github.com/markmetcalfe/markmetcalfe.io.git
git checkout use-chromatic
npm install -g pnpm
pnpm install
npx playwright test
npx chromatic --playwright --project-token=chpt_ABCXYZ
Expected behavior My project is uploaded to chromatic successfully
Screenshots
Additional context This is using pnpm v8.15.4 with Node v20.12.2 on MacOS 14.5