// Focused test excerpt. Run against a local build with Playwright baseURL configured. import { test, expect } from '@playwright/test' const github = '**/api.github.com/users/dotdevdotdev/repos*' const repo = { id: 1, name: 'example-project', description: 'A working repository', html_url: 'https://github.com/dotdevdotdev/agentwire-dev', stargazers_count: 10, forks_count: 0, language: 'TypeScript', topics: [] } test('GitHub failure preserves featured links and retry recovers', async ({ page }) => { let requests = 0 await page.route(github, route => ++requests === 1 ? route.fulfill({ status: 503 }) : route.fulfill({ json: [repo] })) await page.goto('/projects') await expect(page.getByRole('link', { name: /Playchek Inspector/ })).toBeVisible() await page.getByRole('button', { name: 'Retry repositories' }).click() await expect(page.getByRole('heading', { name: repo.name })).toBeVisible() await expect(page.getByRole('link', { name: /Playchek Inspector/ })).toBeVisible() })