This directory contains the test assets for the project, the Federated Social Network.
The goal is to ensure critical user workflows continue to work reliably across releases.
All browser automation lives inside the frontend repository.
fsn-frontend/
│
├── src/
├── public/
├── tests/ ← Playwright tests live here
└── playwright.config.js
Using Playwright, we validate real user journeys through the UI while connected to running backend services.
Examples:
- authentication (login/logout/forgot password)
- creating content
- profile management
- social interactions
- discovery flows
If backend + DB are running, these become full system tests.
cd fsn-backend
npm startcd fsn-frontend
npm run devcd fsn-frontend
npx playwright testAfter execution:
npx playwright show-reportThis opens:
- pass/fail
- screenshots
- traces
- logs
Tests are grouped by feature modules, not by test type.
Example:
tests/
├── auth/
├── profile/
├── post/
├── social/
└── discovery/
Our regression pack is derived from stable functional scenarios.
Before release, we validate that critical flows such as:
- login
- posting
- follow/accept continue to operate.
- Tests assume services are running.
- Data prerequisites (users, relationships) must exist.
- Selectors may evolve with UI updates.
- Keep tests independent.
API validation is not executed via Playwright.
They are maintained separately inside the Postman application and exported to version-controlled collections.