playwright-ct-angular icon indicating copy to clipboard operation
playwright-ct-angular copied to clipboard

Support for non standalone angular component

Open NGautami opened this issue 2 years ago • 3 comments

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!

NGautami avatar Nov 01 '23 08:11 NGautami

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

sand4rt avatar Nov 01 '23 21:11 sand4rt

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!

NGautami avatar Nov 20 '23 10:11 NGautami

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

sand4rt avatar Nov 20 '23 11:11 sand4rt