Skip to content

Commit

Permalink
add tests for Funding part under About
Browse files Browse the repository at this point in the history
  • Loading branch information
YaelChen committed Nov 20, 2024
1 parent da7fc1b commit d5e4fae
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/about.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test.describe('About Page Tests', () => {
advancedRouteFromHAR('tests/HAR/clearbutton.har', {
updateContent: 'embed',
update: false,
notFound: 'abort',
notFound: 'fallback',
url: /stride-api/,
})
})
Expand Down Expand Up @@ -72,6 +72,18 @@ test.describe('About Page Tests', () => {
)
})

test('links under "Funding" should lead to OpenAPI and donations sites', async ({ page }) => {
await page.goto('/')
await page.getByRole('link', { name: 'אודות' }).click()
await page.getByRole('link', { name: 'Open API' }).click()
await page.getByRole('heading', { name: 'Open Bus Stride API' }).waitFor()
await page.goto('/about')
await page.getByRole('link', { name: 'ותרומות קטנות נוספות של ידידי ואוהדי הסדנא' }).click()
await expect(page).toHaveURL(
'https://www.jgive.com/new/he/ils/donation-targets/3268#donation-modal',
)
})

test('links under "Attributions" should lead to the attr origins', async ({ page }) => {
await page.goto('/')
await page.getByRole('link', { name: 'אודות' }).click()
Expand Down

0 comments on commit d5e4fae

Please sign in to comment.