sand4rt / playwright-ct-angular

Playwright Angular component testing.
https://www.npmjs.com/package/@sand4rt/experimental-ct-angular
MIT License
47 stars 4 forks source link

Support for non standalone angular component #35

Open NGautami opened 9 months ago

NGautami commented 9 months ago

Hi @sand4rt

I am trying to understand how and if we can use this for non standalone angular components. Can you please help.

Thanks in advance!

sand4rt commented 9 months ago

Hey @NGautami, only standalone components are supported at the moment. I think this can be added. Will look into this later on

NGautami commented 9 months ago

Thanks @sand4rt

If it is possible for you, can you share some pointers how we can achieve this. We can give it a try. Thanks!

sand4rt commented 9 months ago

I would wait until the repository is absorbed by Playwright. See PR: https://github.com/microsoft/playwright/pull/27783. But if you want to try it see: https://github.com/sand4rt/playwright-ct-angular/blob/main/playwright-ct-angular/registerSource.mjs#L169. That check needs to be removed. Then you may encounter some errors that need to be resolved.

Note: not sure if @analogjs/vite-plugin-angular supports non stand alone components