Repository navigation
test: add end-to-end (e2e) tests for web - #256
Closed
harishrajora wants to merge 1 commit into
Closed
harishrajora wants to merge 1 commit into
harishrajora wants to merge 1 commit into
Conversation
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.
|
@harishrajora is attempting to deploy a commit to the Workoutcool Team Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 stepbmi_calculator_test.md: 180 cm and 90 kg give a BMI of 27.8 in the "Overweight" categoryoutput-<test>/: recorded steps so reruns replay quickly, aResult.mdper test, and an exported Playwright (JavaScript) version of each teste2e/kane/README.md: how to run themeslint.config.mjs:e2e/**added to the global ignores sopnpm lintdoesn't lint the exported filesNeither test needs an account. Both pass against
make dev, on the first run and on replay. Note: on a fresh databasemake setupcurrently fails atdb:seed-leaderboardbecause the0_initmigration isbehind
schema.prisma; I usedprisma db pushlocally (details in the linked issue).The tests are written in plain English with KaneCLI. Disclosure: I work at TestMu AI, which makes KaneCLI.
📋 Checklist
🗃️ Prisma Migrations (if applicable)
N/A
🔗 Related Issues
Closes #255