Closed normanlei0901 closed 1 year ago
Good question, will get back to it but v1.29.1 works for sure.
Ran the test on v1.23.2 and it works as expected. Doesn't work on your end? Did you run npx playwright install
?
@sand4rt thanks for your prompt updates. I am not able to have it running successfully even for this repo. is there any step instruction to run ct-web-lit specifically? thanks `> ct-web-lit@0.0.0 test
npx playwright test
Running 0 tests using 0 workers Error: src/tests.spec.ts:2:1: Playwright Test did not expect test() to be called here. Most common reasons include:
You have two different versions of @playwright/test. This usually happens when one of the dependencies in your package.json depends on @playwright/test.
at tests.spec.ts:2
1 | import { test, expect } from '@sand4rt/experimental-ct-web';
2 | import { Button } from './components/Button'; | ^ 3 | import { Counter } from './components/Counter'; 4 | import { DefaultSlot } from './components/DefaultSlot'; 5 | import { NamedSlots } from './components/NamedSlots';
at errorWithLocation (/Users/bey62672/github/playwright-ct/playwright-ct-web/ct-web-lit/node_modules/@sand4rt/experimental-ct-web/node_modules/@playwright/test/lib/util.js:183:10) at TestTypeImpl._ensureCurrentSuite (/Users/bey62672/github/playwright-ct/playwright-ct-web/ct-web-lit/node_modules/@sand4rt/experimental-ct-web/node_modules/@playwright/test/lib/testType.js:75:41) at TestTypeImpl._createTest (/Users/bey62672/github/playwright-ct/playwright-ct-web/ct-web-lit/node_modules/@sand4rt/experimental-ct-web/node_modules/@playwright/test/lib/testType.js:85:24) at /Users/bey62672/github/playwright-ct/playwright-ct-web/ct-web-lit/node_modules/@sand4rt/experimental-ct-web/node_modules/@playwright/test/lib/transform.js:227:12 at file:///Users/bey62672/github/playwright-ct/playwright-ct-web/ct-web-lit/src/tests.spec.ts:2:1 at async Promise.all (index 0)
================= no tests found. =================`
Did you installed the packages with pnpm install
and the tests with pnpm run test
?
@sand4rt 1.23.1 seems like it was not working for me. and realized
@sand4rt/experimental-ct-web
is integrated with 1.29.1 automatically.
one more question: is Playwright going to support lit-element purely? Seems like its entry point is vite for this package
@sand4rt 1.23.1 seems like it was not working for me. and realized
@sand4rt/experimental-ct-web
is integrated with 1.29.1 automatically.
What is not working? Do you get any errors?
one more question:
is Playwright going to support lit-element purely? Seems like its entry point is vite for this package
The tests projects are created with Vite however Vite is not required
getting below error:
thanks, btw, is there any workersRollupPlugin related support?
@normanlei0901 you need at least version 1.28.0
of @playwright/test
. Could you retry it with v1.0.2?
thanks, btw, is there any workersRollupPlugin related support?
Not exactly sure what workersRollupPlugin is? Playwright does have support for Vite plugins: https://playwright.dev/docs/test-components#q-how-can-i-use-vite-plugins
thanks, btw, is there any workersRollupPlugin related support?
Not exactly sure what workersRollupPlugin is? Playwright does have support for Vite plugins: https://playwright.dev/docs/test-components#q-how-can-i-use-vite-plugins
I am getting below error while testing the component which is using web workers under the hood. Per my understanding, we might need some related plugin to rollup the web workers with component in order to component test it. Any idea? thanks
[vite:worker-import-meta-url] Could not resolve entry module "src/worker/
Do you have an example Github repo which i can look at?
@normanlei0901 i'm closing this one. Feel free to open a new ticket when needed.
The tests projects are created with Vite however Vite is not required
@sand4rt just a question, as the plugin is loaded in ct-web
, how can one opt-out of Vite?
@davidenke Could you create a separate ticket/feature request for that? Would like to know the reason.
@sand4rt my project is using @playwright/test:1.23.2 across the whole project, wonder if it works compatibly. If not, what is the version required? thanks