Skip to content

Testing/ticket 86e13hweg create cypress tests#68

Open
jj-javascript wants to merge 3 commits into
devfrom
testing/ticket-86e13hweg-create-cypress-tests
Open

Testing/ticket 86e13hweg create cypress tests#68
jj-javascript wants to merge 3 commits into
devfrom
testing/ticket-86e13hweg-create-cypress-tests

Conversation

@jj-javascript
Copy link
Copy Markdown
Contributor

Feature Summary

Summary: 3107a804aa70c9

Range note: git log 3107a80..4aa70c9 shows 2 commits (cadaca5, 4aa70c9). The narrative below covers three commits on that line: 3107a80 (start), cadaca5, and 4aa70c9 (end).


1. 3107a80Cypress Tests for landing page created and working

(Wed Apr 29, 2026)

  • Introduced Cypress component testing for the project.
  • Expanded cypress.config.ts (component config, webpack/Next wiring).
  • Added cypress/component/LandingPage.cy.tsx (landing / upload-related UI checks).
  • Added supporting scaffolding: cypress/support/component.ts, component-index.html, commands.ts, cypress/mocks/next-navigation.ts, logging mock, example fixture.
  • Updated next.config.js for Cypress/Next compatibility.
  • Removed a large set of failed screenshot PNGs under cypress/screenshots/... that had been committed from earlier runs.

2. cadaca5Upload feature spec test

(Wed Apr 29, 2026)

  • Added a dedicated upload form suite: cypress/component/UploadForm.cy.tsx (~227 lines) covering file upload, mobile layout, language swap, submit state, etc.
  • Trimmed cypress.config.ts (~50 lines removed) — config simplified relative to the prior commit.
  • Simplified cypress/mocks/next-navigation.ts (mock router aligned with new tests).
  • Deleted cypress/support/logging-stub.ts and the remaining failed screenshots from the repo.

3. 4aa70c9cypress e2e tests for document translation check and text-to-speech feature check

(Thu Apr 30, 2026)

  • Added E2E Cypress coverage:
    • cypress/e2e/translate.cy.ts — translate page session handling, API error paths, loading, success.
    • cypress/e2e/translation-tts.cy.ts — multilingual pairs, Read Aloud / TTS (mocked APIs), workflow tests; helpers for unique doc IDs, summarize stub, WAV mock, etc.
  • Wired E2E support: cypress/support/e2e.ts, and cypress.config.ts updates for e2e (baseUrl, spec pattern, support file).
  • Dependencies: package.json / lockfile — added cypress, start-server-and-test, and npm scripts for running Cypress (including translation-tts + dev server on port 3055).
  • Product tweak: components/features/tts/ReadAloudPanel.tsx — split autoplay-blocked UX (“Ready to play”) from real TTS failures (“Read Aloud failed”) so tests and users aren’t misled by browser autoplay policy.
  • logs/logs.json updated (runtime/API log noise from local runs).

Overall arc

Commit Theme
3107a80 Cypress component setup + landing-focused spec + repo cleanup (screenshots).
cadaca5 UploadForm component tests + leaner config/mocks.
4aa70c9 Cypress E2E for translate + TTS, npm/scripts/deps, Read Aloud alert refinement, log churn.

What does this PR change?
This PR creates consistent Cypress tests for the main components of the application.

Why was this change made?
This change makes debugging easier in the future.

What is the code meant to do?
To have self-administering tests that catch any issues that happen as the app runs or the architecture is expanded in the future.


Feature Team / Lane

Team #: (1–5)
DevOps Lane: (if applicable)


Type of Change

  • Feature
  • Bug fix
  • Refactor
  • Documentation
  • CI/CD
  • Other (please specify)

Testing

How was this tested?

Automated Testing

  • Unit tests added or updated
  • Integration tests added or updated
  • Existing tests pass locally
  • CI pipeline passes

Manual Testing

  • Local testing completed
  • API endpoints tested
  • UI manually tested
  • Edge cases considered

Screenshots (if UI changes)

Attach screenshots or screen recordings here if the PR includes UI changes.


Risks / Edge Cases

Risks would be if any integral parts of the UI/UX changes or if other languages are added tests would have to be refactored.


Environment Variables Added or Changed

List variable names only. Do not include secrets.


Checklist

  • Lint passes
  • Type check passes
  • No console logs remain
  • Deployment preview verified

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
multilingual-ai-document-assistant Ready Ready Preview, Comment Apr 30, 2026 3:51pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant