mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 01:10:02 +02:00
feat(tests): integrate Playwright and Vitest for testing, add CI pipeline, and update dependencies
- Added Playwright configuration for end-to-end testing. - Integrated Vitest for unit testing with setup files. - Updated package.json scripts for testing commands. - Created CI pipeline for automated testing and builds. - Added various test cases for components and pages. - Updated .gitignore to exclude Playwright and coverage. - Enhanced ModsList component with additional class for styling.
This commit is contained in:
parent
966da54a29
commit
133bbc20be
20 changed files with 2339 additions and 152 deletions
9
src/tests/pages/routes.spec.ts
Normal file
9
src/tests/pages/routes.spec.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { expect, test } from '@playwright/test'
|
||||
|
||||
test('all routes do not return 404', async ({ page }) => {
|
||||
const routes = ['/', '/welcome', '/about', '/privacy-policy', '/download', '/donate', '/whatsnew']
|
||||
for (const route of routes) {
|
||||
const response = await page.goto(route)
|
||||
expect(response?.status()).not.toBe(404)
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue