Skip to content

test(e2e): add full player journey e2e test - #652

Open
AbdulSnk wants to merge 1 commit into
MindBlockLabs:mainfrom
AbdulSnk:feat/e2e-test
Open

test(e2e): add full player journey e2e test#652
AbdulSnk wants to merge 1 commit into
MindBlockLabs:mainfrom
AbdulSnk:feat/e2e-test

Conversation

@AbdulSnk

Copy link
Copy Markdown
Contributor

Summary

Adds an end-to-end test for the complete player journey, per #625.
The application had solid coverage on individual modules, but no
single test verified that a player can actually go from start to
finish in a real game session.

What's covered

  • Player registration / login
  • Starting a new game
  • Making a move
  • Reaching a completed (win/loss) game state

Changes

  • Added test/player-journey.e2e-spec.ts
  • Test follows the existing Jest + Supertest e2e pattern used in
    test/app.e2e-spec.ts, with app.close() added in afterEach
    to avoid leaking open connections between test runs

How to test

npm run test:e2e

Notes for reviewers

This is a sequential test (single it() block) rather than
separate cases per step, since later steps depend on state
(authToken, gameId) created in earlier steps — this keeps the
test representing one continuous journey rather than isolated,
order-dependent test cases.

Closes #625

@vercel

vercel Bot commented Aug 22, 2026

Copy link
Copy Markdown

@dev-Abdul25 is attempting to deploy a commit to the aminubabafatima8-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add an end-to-end test for the complete player journey

2 participants