
Description
This is a testing library that adds Angular support to Playwright's experimental component testing. It lets you mount single Angular components, directives and pipes in a real browser and test them without building the whole app. Inputs and outputs are set through type-safe controls, providers can be overridden with test doubles, and components can be tested with templates. The README lists known limits: the component type cannot be stored in a variable or used elsewhere in the same test file, and components cannot be declared in that file. Setup covers installing the package, configuring Playwright and renaming test files to the component test extension. It is for Angular developers who already use Playwright and want component-level tests with more control than full end-to-end runs. The project is marked experimental.…
Highlights
- Mount Angular components, directives and pipes
- Type-safe inputs and outputs
- Provider overrides and test doubles
- Style and Angular Material support
- Template-based tests
Ratings & Reviews
No ratings yet
Be the first to rate @jscutlery/playwright-ct-angular.
People also visit
ngx-bootstrap-icons
Bootstrap Icons components library for your Angular Applications
@jscutlery/playwright-ct-angular FAQ
What is it?
A Playwright component testing adapter for Angular, so single components can be tested in a browser.
Who is it for?
Angular developers who already use Playwright and want to test components on their own with more control.
What are the known limits?
The component type cannot be held in a variable or used elsewhere in the same file, and components cannot be declared in the test file.
Is it stable?
No. The README marks both Playwright component testing and this library as experimental.
What are the best @jscutlery/playwright-ct-angular alternatives?
Popular alternatives to @jscutlery/playwright-ct-angular include jest-preset-angular, jest-marbles and Early AI. See all @jscutlery/playwright-ct-angular alternatives

















