feat: update catalog to 396 hacks with generations/fakemon fields
This commit is contained in:
+21
-19
@@ -11,23 +11,23 @@ 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('368');
|
||||
await expect(heroStats).toContainText('396');
|
||||
await expect(heroStats).toContainText('hacks');
|
||||
await expect(heroStats).toContainText('Platforms');
|
||||
await expect(heroStats).toContainText('GBA 188');
|
||||
await expect(heroStats).toContainText('GBA 197');
|
||||
await expect(heroStats).toContainText('NDS 47');
|
||||
await expect(heroStats).toContainText('PC 40');
|
||||
await expect(heroStats).toContainText('GBC 22');
|
||||
await expect(heroStats).toContainText('PC 66');
|
||||
await expect(heroStats).toContainText('GBC 36');
|
||||
await expect(heroStats).toContainText('Types');
|
||||
await expect(heroStats).toContainText('Expansion 143');
|
||||
await expect(heroStats).toContainText('New Experience 129');
|
||||
await expect(heroStats).toContainText('Difficulty 105');
|
||||
await expect(heroStats).toContainText('QoL 50');
|
||||
await expect(heroStats).toContainText('Expansion 144');
|
||||
await expect(heroStats).toContainText('New Experience 156');
|
||||
await expect(heroStats).toContainText('Difficulty 108');
|
||||
await expect(heroStats).toContainText('QoL 54');
|
||||
await expect(heroStats).toContainText('Status');
|
||||
await expect(heroStats).toContainText('Complete 168');
|
||||
await expect(heroStats).toContainText('Ongoing 28');
|
||||
await expect(heroStats).toContainText('Beta 10');
|
||||
await expect(heroStats).toContainText('Unclassified 161');
|
||||
await expect(heroStats).toContainText('Complete 196');
|
||||
await expect(heroStats).toContainText('Ongoing 34');
|
||||
await expect(heroStats).toContainText('Beta 12');
|
||||
await expect(heroStats).toContainText('Unclassified 153');
|
||||
});
|
||||
|
||||
test('homepage stat cards are polished and responsive', async ({ page }) => {
|
||||
@@ -72,12 +72,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+188/ })).toHaveAttribute('href', '/browse/platform/gba/');
|
||||
await expect(browse.getByRole('link', { name: /Difficulty\s+105/ })).toHaveAttribute(
|
||||
await expect(browse.getByRole('link', { name: /GBA\s+197/ })).toHaveAttribute('href', '/browse/platform/gba/');
|
||||
await expect(browse.getByRole('link', { name: /Difficulty\s+108/ })).toHaveAttribute(
|
||||
'href',
|
||||
'/browse/type/difficulty/',
|
||||
);
|
||||
await expect(browse.getByRole('link', { name: /Complete\s+168/ })).toHaveAttribute(
|
||||
await expect(browse.getByRole('link', { name: /Complete\s+196/ })).toHaveAttribute(
|
||||
'href',
|
||||
'/browse/status/complete/',
|
||||
);
|
||||
@@ -89,7 +89,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(368);
|
||||
await expect(catalogCards).toHaveCount(396);
|
||||
|
||||
await page.getByPlaceholder('Search hacks').fill('Radical Red');
|
||||
await expect(catalogCards).toHaveCount(4);
|
||||
@@ -97,7 +97,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(188);
|
||||
await expect(catalogCards).toHaveCount(197);
|
||||
|
||||
await page.getByLabel('Difficulty').check();
|
||||
await expect(catalogCards.first()).toBeVisible();
|
||||
@@ -181,10 +181,12 @@ test('detail page renders metadata and private file links', async ({ page }) =>
|
||||
|
||||
await expect(page.getByRole('heading', { name: 'Pokémon Radical Red' })).toBeVisible();
|
||||
await expect(page.getByText('Platform').first()).toBeVisible();
|
||||
await expect(page.getByText('Roster').first()).toBeVisible();
|
||||
await expect(page.getByText('Fakemon').first()).toBeVisible();
|
||||
await expect(page.getByRole('heading', { name: 'Files' })).toBeVisible();
|
||||
await expect(page.getByRole('link', { name: 'ROM file' })).toHaveAttribute(
|
||||
'href',
|
||||
/https:\/\/romhacks-files\.ginnoir\.com\/_roms\/gba\/Hacks\//,
|
||||
/https:\/\/romhacks-files\.ginnoir\.com\/_roms\/gba\/Pokemon%20-%20Radical%20Red/,
|
||||
);
|
||||
await expect(page.locator('body')).not.toContainText('undefined');
|
||||
});
|
||||
@@ -193,6 +195,6 @@ 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(105);
|
||||
await expect(page.locator('[data-card]:visible')).toHaveCount(108);
|
||||
await expect(page.getByRole('link', { name: /Open Pokémon Radical Red/ })).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user