mirror of
https://github.com/BreizhHardware/Site-comptage-heure.git
synced 2026-05-09 08:15:31 +02:00
[PR #7] [MERGED] feat: add Cypress end-to-end tests for login functionality and CI configuration #69
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BreizhHardware/Site-comptage-heure#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BreizhHardware/Site-comptage-heure/pull/7
Author: @BreizhHardware
Created: 10/18/2025
Status: ✅ Merged
Merged: 10/18/2025
Merged by: @BreizhHardware
Base:
main← Head:dev📝 Commits (7)
94ed954feat: add Cypress end-to-end tests for login functionality and CI configuration3560002feat: enhance user seeding with UUIDs and improve code formatting in various filesbef0e77feat: update CI configuration to rename 'ci' script to 'ci:run'1cf674afix: correct formatting in README and update CI script to use npx for server startfc13c94feat: update CI configuration and disable Cypress support file1994ed5feat: update file upload paths and add dynamic file retrieval endpoint1761fa4feat: add environment variables for CI and update login test selectors📊 Changes
17 files changed (+1454 additions, -40 deletions)
View changed files
➕
.github/workflows/ci.yml(+26 -0)📝
.gitignore(+1 -0)📝
Dockerfile(+1 -1)📝
README.md(+1 -1)📝
app/admin/page.tsx(+26 -13)📝
app/api/upload/route.ts(+2 -2)➕
app/api/uploads/[filename]/route.ts(+31 -0)📝
app/dashboard/page.tsx(+10 -7)📝
components/Header.tsx(+9 -6)📝
components/providers.tsx(+1 -3)📝
context/SettingsContext.tsx(+13 -3)➕
cypress.config.ts(+11 -0)➕
cypress/e2e/login.cy.ts(+9 -0)📝
docker-compose.yml(+1 -1)📝
package.json(+8 -1)📝
pnpm-lock.yaml(+1271 -2)➕
scripts/seed-test.js(+33 -0)📄 Description
This pull request introduces end-to-end (E2E) testing infrastructure using Cypress, integrates it into the CI workflow, and adds a test user seeding script to support authentication tests. The main themes are E2E test setup, CI integration, and test data management.
E2E Testing Setup:
cypress.config.tsfor E2E tests. [1] [2]cypress/e2e/login.cy.ts, verifying user authentication flow.Continuous Integration (CI):
.github/workflows/ci.ymlto run E2E tests on pull requests, including setup for Node, pnpm, Prisma, and Cypress.package.jsonscripts to support Cypress commands and a full CI pipeline (ciscript runs build, starts server, and executes E2E tests).Test Data Management:
scripts/seed-test.jsto programmatically create a test user in the database, ensuring a consistent environment for authentication tests.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.