Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: User license tests #909

Merged
merged 3 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/pages/DonateModal/DonateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const DonateModal: React.FC<DonateModalProps> = ({ isVisible, onClose }) => {
<Modal
open={isVisible}
onClose={onClose}
style={{ color: '#1498e5' }}
aria-labelledby="modal-modal-title"
aria-describedby="modal-modal-description">
<Box dir={i18n.dir()} sx={style}>
Expand Down
12 changes: 12 additions & 0 deletions tests/about.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,16 @@ test.describe('About Page Tests', () => {
await page.getByRole('link', { name: 'קראו כאן' }).click()
await expect(page).toHaveURL(/support\.google\.com\/analytics\/answer\/6004245\?hl=iw/)
})

test('clicking the links under "user license" should lead to creativecommons.org', async ({
page,
}) => {
await page.goto('/')
await page.getByRole('link', { name: 'אודות' }).click()
await page.getByRole('link', { name: 'רישיון CC BY-SA' }).click()
await expect(page).toHaveURL('https://creativecommons.org/licenses/by-sa/4.0/')
await page.goto('/about')
await page.getByRole('link', { name: 'Creative Commons' }).click()
await expect(page).toHaveURL('https://creativecommons.org/')
})
})
Loading