Skip to content

Commit

Permalink
New e2e tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
popkinj committed Jan 15, 2025
1 parent 6ed1966 commit 7797a73
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions frontend/e2e/pages/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,20 @@ export const map_page = async (page: Page) => {
await showResultsBtn.click()

await page.getByTitle('Close').click({ force: true })

// Test basemap switcher
const basemapButton = page.locator('.basemap-toggle')
await expect(basemapButton).toBeVisible()
await basemapButton.click()

// Check all basemap options are available
await expect(
page.locator('.basemap-option span').filter({ hasText: 'Streets' }),
).toBeVisible()
await expect(
page.locator('.basemap-option span').filter({ hasText: 'Terrain' }),
).toBeVisible()
await expect(
page.locator('.basemap-option span').filter({ hasText: 'Imagery' }),
).toBeVisible()
}

0 comments on commit 7797a73

Please sign in to comment.