Skip to content

Commit

Permalink
test: all dashboards are visible
Browse files Browse the repository at this point in the history
  • Loading branch information
NoamGaash committed Jan 20, 2025
1 parent 18c7283 commit faf48c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/dashboard.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { expect } from '@playwright/test'
import { test, urlMatcher } from './utils'

test.describe('dashboard tests', () => {
Expand Down Expand Up @@ -26,4 +27,10 @@ test.describe('dashboard tests', () => {
await page.getByLabel('עבור למצב כהה').click()
await page.getByLabel('עבור למצב בהיר').click()
})

test('dashboard charts contain information', async ({ page }) => {
await expect(page.getByText('686 | קווים').first()).toBeVisible()
await expect(page.getByText('מועצה אזורית גולן').first()).toBeVisible()
await expect(page.getByRole('heading', { name: 'אגד תעבורה' })).toBeVisible()
})
})

0 comments on commit faf48c8

Please sign in to comment.