when I hit run, it generates the following command:
/usr/bin/node /home/samuelv/Projects/myproject/node_modules/@playwright/test/cli.js test --config=tests/playwright.config.ts --reporter /tmp/intellij-playwright-reporter260356059687260141.js ../../tests
which doesn't work. When I run the tests manually I just run npx playwright test --config=tests/playwright.config.ts, no directory necessary.
When I want to run a single file, I run npx playwright test --config=tests/playwright.config.ts <path relative to playwright.config.ts>, i.e. given the following directory:
I would run npx playwright test --config tests/playwright.config.ts usecases/login-and-logout.ts.
When I hit the "Run this test" button in the gutter, it generates a command like:
/usr/bin/node /home/samuelv/Projects/code_expert/node_modules/@playwright/test/cli.js test --reporter /tmp/intellij-playwright-reporter260356059687260141.js login-and-logout.ts -g ^login-and-logout.ts.Log in and log out$
which doesn't work for multiple reasons:
it passes login-and-logout.ts when it should pass usecases/login-and-logout.ts
it passes -g "^login-and-logout.ts.Log in and log out$, when it should either omit the ^ or prepend the whole path, i.e. usecases/login-and-logout.
I setup my run configuration like this:
when I hit run, it generates the following command:
which doesn't work. When I run the tests manually I just run
npx playwright test --config=tests/playwright.config.ts
, no directory necessary.When I want to run a single file, I run
npx playwright test --config=tests/playwright.config.ts <path relative to playwright.config.ts>
, i.e. given the following directory:I would run
npx playwright test --config tests/playwright.config.ts usecases/login-and-logout.ts
.When I hit the "Run this test" button in the gutter, it generates a command like:
which doesn't work for multiple reasons:
login-and-logout.ts
when it should passusecases/login-and-logout.ts
-g "^login-and-logout.ts.Log in and log out$
, when it should either omit the^
or prepend the whole path, i.e.usecases/login-and-logout
.