sand4rt / playwright-ct-angular

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

Support for non standalone angular component #35

Open NGautami opened 1 year ago

NGautami commented 1 year 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 1 year 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 1 year 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 1 year 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