Skip to content

test: add end-to-end (e2e) tests for web - #256

Closed
harishrajora wants to merge 1 commit into
Snouzy:mainfrom
harishrajora:test/e2e-tests
Closed

harishrajora wants to merge 1 commit into
Snouzy:mainfrom
harishrajora:test/e2e-tests

Conversation

@harishrajora

Copy link
Copy Markdown

Adds browser end-to-end tests under e2e/kane/, with no app code changes:

  • workout_builder_test.md: step through the session builder: choose equipment, pick shoulders on the body diagram, reach the Exercises step
  • bmi_calculator_test.md: 180 cm and 90 kg give a BMI of 27.8 in the "Overweight" category
  • output-<test>/: recorded steps so reruns replay quickly, a Result.md per test, and an exported Playwright (JavaScript) version of each test
  • e2e/kane/README.md: how to run them
  • eslint.config.mjs: e2e/** added to the global ignores so pnpm lint doesn't lint the exported files

Neither test needs an account. Both pass against make dev, on the first run and on replay. Note: on a fresh database make setup currently fails at db:seed-leaderboard because the 0_init migration is
behind schema.prisma; I used prisma db push locally (details in the linked issue).

The tests are written in plain English with KaneCLI. Disclosure: I work at TestMu AI, which makes KaneCLI.

📋 Checklist

  • My code follows the project conventions
  • This PR includes breaking changes
  • I have updated documentation if necessary

🗃️ Prisma Migrations (if applicable)

N/A

🔗 Related Issues

Closes #255

Go through the UI in a real browser: stepping through the session builder from equipment to the Exercises step, and checking the BMI calculator. Each test is a plain-English _test.md file with recorded steps and an exported Playwright version. ESLint skips the e2e folder.
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

@harishrajora is attempting to deploy a commit to the Workoutcool Team 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.

Browser end-to-end (e2e) tests for the session builder and tools

1 participant