Skip to content

Commit

Permalink
test: add test for GitHub icon (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
YaelChen authored Nov 4, 2024
1 parent 84bc90b commit b9d7996
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/githubLink.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { test, expect } from '@playwright/test'

test('make sure the corner GitHub icon leads to DataBus GitHub project', async ({ page }) => {
await page.goto('/')
const page1Promise = page.waitForEvent('popup')
await page.getByLabel('למעבר אל GitHub').locator('svg').click()
const page1 = await page1Promise
await expect(page1).toHaveURL(/open-bus-map-search/)
await expect(page1.getByRole('heading', { name: 'open-bus-map-search' })).toBeVisible()
})

0 comments on commit b9d7996

Please sign in to comment.