fix(ui): scale WORLD MAP to fill its tab pane without an internal scrollbar (#36)
CI / build + unit + e2e (pull_request) Failing after 13m30s
CI / build + unit + e2e (pull_request) Failing after 13m30s
This commit is contained in:
+5
-2
@@ -87,8 +87,11 @@ test('tab bar stays pinned while panel content scrolls (#31)', async ({ page })
|
||||
// Shrink the viewport so the center pane's content overflows its scroll area regardless of save state.
|
||||
await page.setViewportSize({ width: 1280, height: 560 });
|
||||
|
||||
// WORLD MAP is always tall enough to overflow (fixed-height chart) — deterministic across retries.
|
||||
await page.getByRole('tab', { name: 'WORLD MAP' }).click();
|
||||
// SHIP SYSTEMS always renders six stacked system cards (seeded at start, never removed) — tall
|
||||
// enough to overflow the shrunk pane on any save state, deterministic across retries. (#36 made
|
||||
// WORLD MAP fill its pane instead of overflowing it, so it can no longer force the scroll.)
|
||||
await page.getByRole('tab', { name: 'SHIP SYSTEMS' }).click();
|
||||
await expect(page.getByRole('heading', { name: 'HULL' })).toBeVisible();
|
||||
|
||||
const tablist = page.getByRole('tablist');
|
||||
await expect(tablist).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user