Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Marc Emmanuel 2026-01-23 12:49:46 +01:00 committed by GitHub
parent 93e7b9d3dd
commit 9f483ff755
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -12,6 +12,13 @@ test.describe('map layers', () => {
})
// Navigate with seed parameter
// NOTE:
// - We use a fixed seed ("test-seed") to make map generation deterministic for snapshot tests.
// - The resulting snapshots are platform-specific (Playwright stores them with suffixes such as
// "-darwin", "-linux", "-win32").
// - Currently, only macOS ("-darwin") snapshots may be present in the repository. On other
// platforms (Linux/Windows), you must generate/update the corresponding snapshots for the
// tests to pass, or configure Playwright to use per-platform snapshot directories.
await page.goto('/?seed=test-seed')
const mapElement = page.locator('#map')
@ -21,7 +28,6 @@ test.describe('map layers', () => {
await expect(mapElement.locator('#terrs')).toBeAttached({ timeout: 30000 })
await expect(mapElement.locator('#labels')).toBeAttached()
await expect(page.locator('#loading')).toBeHidden({ timeout: 30000 })
await page.waitForTimeout(1000)
})
// Ocean and water layers