| name | golinks-testing |
| description | Use when testing the GoLinks application after code changes. Covers linting, type checking, unit tests, and visual verification with Playwright headless browser. Trigger when the user asks to verify changes, run tests, check if something works, or test in the browser. |
GoLinks Testing
Code Quality
yarn lint
yarn lint:fix
yarn build
yarn test
yarn test:run
Visual Verification with Playwright
The dev server must be running (see golinks-dev-environment skill).
Navigate to pages
playwright_browser_navigate -> http://localhost:3000
Key pages to test
http://localhost:3000 โ home page with link table
http://localhost:3000/help โ help page
http://localhost:3000/api/graphiql โ GraphiQL IDE (dev only)
Test a redirect
playwright_browser_navigate -> http://localhost:3000/gh/armand1m
Should redirect to https://github.com/armand1m.
Verify page content
playwright_browser_snapshot -> check UI elements rendered correctly
Test link creation
- Navigate to home page
- Click "Create Link" or equivalent button
- Fill form with alias + URL
- Submit and verify new link appears in table
After Making Code Changes
Run this verification sequence:
- If
.graphql files changed: yarn codegen
- If migrations changed:
dbmate up + regenerate schema + yarn codegen
- Lint:
yarn lint
- Type check:
yarn build
- Unit tests:
yarn test
- Visual check with Playwright on affected pages
Testing Patterns
- Use
playwright_browser_snapshot for accessibility-based assertions (element text, roles)
- Use
playwright_browser_take_screenshot when visual layout matters
- Use
playwright_browser_console_messages to check for JS errors
- Use
playwright_browser_network_requests to debug API calls