chore: sync 591-hack catalog from Hackdex sweep and update UI test counts
This commit is contained in:
1 parent
9e473978af
commit
c52cec446e
3 files changed
+13604
-185
No files matched your search
+20
-20
@@ -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('417');
|
||||
await expect(heroStats).toContainText('591');
|
||||
await expect(heroStats).toContainText('hacks');
|
||||
await expect(heroStats).toContainText('Platforms');
|
||||
await expect(heroStats).toContainText('GBA 211');
|
||||
await expect(heroStats).toContainText('GBA 328');
|
||||
await expect(heroStats).toContainText('PC 86');
|
||||
await expect(heroStats).toContainText('NDS 52');
|
||||
await expect(heroStats).toContainText('GBC 37');
|
||||
await expect(heroStats).toContainText('NDS 83');
|
||||
await expect(heroStats).toContainText('GBC 47');
|
||||
await expect(heroStats).toContainText('Types');
|
||||
await expect(heroStats).toContainText('Expansion 172');
|
||||
await expect(heroStats).toContainText('New Experience 184');
|
||||
await expect(heroStats).toContainText('Difficulty 127');
|
||||
await expect(heroStats).toContainText('QoL 98');
|
||||
await expect(heroStats).toContainText('Expansion 289');
|
||||
await expect(heroStats).toContainText('New Experience 260');
|
||||
await expect(heroStats).toContainText('Difficulty 164');
|
||||
await expect(heroStats).toContainText('QoL 203');
|
||||
await expect(heroStats).toContainText('Status');
|
||||
await expect(heroStats).toContainText('Complete 354');
|
||||
await expect(heroStats).toContainText('Ongoing 30');
|
||||
await expect(heroStats).toContainText('Beta 32');
|
||||
await expect(heroStats).toContainText('Complete 488');
|
||||
await expect(heroStats).toContainText('Ongoing 37');
|
||||
await expect(heroStats).toContainText('Beta 65');
|
||||
});
|
||||
|
||||
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+211/ })).toHaveAttribute('href', '/browse/platform/gba/');
|
||||
await expect(browse.getByRole('link', { name: /Difficulty\s+127/ })).toHaveAttribute(
|
||||
await expect(browse.getByRole('link', { name: /GBA\s+328/ })).toHaveAttribute('href', '/browse/platform/gba/');
|
||||
await expect(browse.getByRole('link', { name: /Difficulty\s+164/ })).toHaveAttribute(
|
||||
'href',
|
||||
'/browse/type/difficulty/',
|
||||
);
|
||||
await expect(browse.getByRole('link', { name: /Complete\s+354/ })).toHaveAttribute(
|
||||
await expect(browse.getByRole('link', { name: /Complete\s+488/ })).toHaveAttribute(
|
||||
'href',
|
||||
'/browse/status/complete/',
|
||||
);
|
||||
@@ -88,17 +88,17 @@ 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(417);
|
||||
await expect(catalogCards).toHaveCount(591);
|
||||
|
||||
await page.getByPlaceholder('Search hacks').fill('Radical Red');
|
||||
await expect(catalogCards).toHaveCount(5);
|
||||
await expect(catalogCards).toHaveCount(6);
|
||||
await expect(page.getByRole('region', { name: 'Hack catalog' }).getByRole('link', { name: /Open Pokémon Radical Red/ })).toBeVisible();
|
||||
|
||||
await page.getByPlaceholder('Search hacks').fill('');
|
||||
await page.getByLabel('GBA').check();
|
||||
await expect(catalogCards).toHaveCount(211);
|
||||
await expect(catalogCards).toHaveCount(328);
|
||||
|
||||
await page.getByLabel('Difficulty').check();
|
||||
await page.getByRole('checkbox', { name: 'Difficulty' }).check();
|
||||
await expect(catalogCards.first()).toBeVisible();
|
||||
await expect(page.locator('[data-result-count]')).toContainText('shown');
|
||||
});
|
||||
@@ -193,7 +193,7 @@ test('detail page renders metadata and private file links', async ({ page }) =>
|
||||
test('browse pages render static grouped lists', async ({ page }) => {
|
||||
await page.goto('/browse/type/difficulty/');
|
||||
|
||||
await expect(page.getByRole('heading', { name: 'Difficulty' })).toBeVisible();
|
||||
await expect(page.locator('[data-card]:visible')).toHaveCount(127);
|
||||
await expect(page.getByRole('heading', { name: 'Difficulty', exact: true })).toBeVisible();
|
||||
await expect(page.locator('[data-card]:visible')).toHaveCount(164);
|
||||
await expect(page.getByRole('link', { name: /Open Pokémon Radical Red/ })).toBeVisible();
|
||||
});
|
||||
Reference in new issue
Block a user