tests: add Playwright E2E fuzz test for the guided lesson - #627
Open
jpds wants to merge 3 commits into
Open
Conversation
Changed Files
|
jpds
force-pushed
the
test/e2e-guided-lesson-fuzz
branch
6 times, most recently
from
July 31, 2026 11:54
4048554 to
82c98a7
Compare
Simulates a human typing through the full American English alphabet in the guided lesson with a randomized per-round typing speed, checking that keys never regress, unlock one at a time, and that the target key, its toast, and its confidence state stay consistent throughout. Others included tests cover the toasts, the on-screen keyboard's hesitation-pointer highlighting the physically correct key, and a mistyped-then-corrected character rendering in the theme's miss color.
Writes new guided-lesson settings to `localStorage` and reloads mid-run. This checks progress survives the `GuidedLesson`/`Progress` reconstruction: * `naturalWords` and a target-speed ramp shouldn't lose already-earned unlocks * `alphabetSize` can force-include several keys in one round * `recoverKeys` can legitimately re-lock a key past the guaranteed first 6.
Occasionally mistypes-then-corrects the displayed character instead of typing it cleanly, mirroring a human fumble.
jpds
force-pushed
the
test/e2e-guided-lesson-fuzz
branch
from
July 31, 2026 18:12
82c98a7 to
3f31dde
Compare
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.
This branch adds an end-to-end test suite with Playwright which exercises the guided lessons functionality.
Completes in about <5 minutes on my machine. I run this with: