Tests
Include at least one unit test in your repo to demonstrate how testing works (full testing coverage is not required!)
E2E Tests
Section titled “E2E Tests”A shared Playwright E2E test suite is available to validate your frontend implementation. It covers authentication, articles, comments, navigation, settings, social features, error handling, and even basic XSS security.
To make your implementation compatible with the E2E tests, it must follow the selectors contract, which defines:
- Form input
nameattributes - Required CSS classes (layout, feed, tags, comments, profile, pagination, buttons, errors)
- Required text content for buttons and links
- Routes
- A debug interface (
window.__conduit_debug__) - LocalStorage key for the JWT token
- Default avatar behavior
Running the tests
Section titled “Running the tests”The test suite ships with a base Playwright config that you can extend in your implementation. Override baseURL and webServer to point to your dev server.
See the Angular implementation for a working example.