Skip to content

Commit

Permalink
test: add test for fund (#935)
Browse files Browse the repository at this point in the history
Co-authored-by: Noam Gaash <[email protected]>
YaelChen and NoamGaash authored Nov 21, 2024
1 parent 6c8c3a9 commit b113a53
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
@@ -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/,
})
})
@@ -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()

0 comments on commit b113a53

Please sign in to comment.