data: refresh romhack archive catalog

This commit is contained in:
ginnoir
2026-07-04 19:01:11 -05:00
parent 26cafb2681
commit ca1a1a21ac
3 changed files with 155 additions and 28 deletions
+12 -12
View File
@@ -11,22 +11,22 @@ test('homepage presents balanced navigation and facet summaries', async ({ page
await expect(primaryNav.getByRole('link', { name: 'Difficulty' })).toHaveCount(0);
const heroStats = page.locator('.hero-stats');
await expect(heroStats).toContainText('396');
await expect(heroStats).toContainText('398');
await expect(heroStats).toContainText('hacks');
await expect(heroStats).toContainText('Platforms');
await expect(heroStats).toContainText('GBA 201');
await expect(heroStats).toContainText('PC 77');
await expect(heroStats).toContainText('GBA 202');
await expect(heroStats).toContainText('PC 78');
await expect(heroStats).toContainText('NDS 50');
await expect(heroStats).toContainText('GBC 37');
await expect(heroStats).toContainText('Types');
await expect(heroStats).toContainText('Expansion 165');
await expect(heroStats).toContainText('New Experience 165');
await expect(heroStats).toContainText('Expansion 166');
await expect(heroStats).toContainText('New Experience 167');
await expect(heroStats).toContainText('Difficulty 126');
await expect(heroStats).toContainText('QoL 88');
await expect(heroStats).toContainText('QoL 89');
await expect(heroStats).toContainText('Status');
await expect(heroStats).toContainText('Complete 337');
await expect(heroStats).toContainText('Complete 338');
await expect(heroStats).toContainText('Ongoing 30');
await expect(heroStats).toContainText('Beta 28');
await expect(heroStats).toContainText('Beta 29');
});
test('homepage stat cards are polished and responsive', async ({ page }) => {
@@ -71,12 +71,12 @@ test('homepage browse summary links to grouped facet pages', async ({ page }) =>
const browse = page.getByRole('region', { name: 'Browse by catalog facets' });
await expect(browse.getByRole('heading', { name: 'Browse the archive' })).toBeVisible();
await expect(browse.getByRole('link', { name: /GBA\s+201/ })).toHaveAttribute('href', '/browse/platform/gba/');
await expect(browse.getByRole('link', { name: /GBA\s+202/ })).toHaveAttribute('href', '/browse/platform/gba/');
await expect(browse.getByRole('link', { name: /Difficulty\s+126/ })).toHaveAttribute(
'href',
'/browse/type/difficulty/',
);
await expect(browse.getByRole('link', { name: /Complete\s+337/ })).toHaveAttribute(
await expect(browse.getByRole('link', { name: /Complete\s+338/ })).toHaveAttribute(
'href',
'/browse/status/complete/',
);
@@ -88,7 +88,7 @@ test('catalog search and filters update visible card count', async ({ page }) =>
await expect(page).toHaveTitle(/ROM Hack Archive/);
await expect(page.getByRole('heading', { name: 'ROM Hack Archive' })).toBeVisible();
const catalogCards = page.locator('[data-card-grid] [data-card]:visible');
await expect(catalogCards).toHaveCount(396);
await expect(catalogCards).toHaveCount(398);
await page.getByPlaceholder('Search hacks').fill('Radical Red');
await expect(catalogCards).toHaveCount(5);
@@ -96,7 +96,7 @@ test('catalog search and filters update visible card count', async ({ page }) =>
await page.getByPlaceholder('Search hacks').fill('');
await page.getByLabel('GBA').check();
await expect(catalogCards).toHaveCount(201);
await expect(catalogCards).toHaveCount(202);
await page.getByLabel('Difficulty').check();
await expect(catalogCards.first()).toBeVisible();