Conversation
- Add E2E test infrastructure with setup/teardown scripts - Add test fixtures: start-server, stop-server, start-browser, stop-browser, pw wrapper - Add pairing_and_conversation test that: - Starts the moltworker server with wrangler dev - Opens browser with playwright-cli - Tests device pairing flow via admin UI - Tests conversation with Claude (math question) - Add video recording support using playwright-cli video-start/video-stop - Add E2E_TEST_MODE to skip CF Access auth during tests - Add isE2ETestMode helper and tests
4c2b9e1 to
4c946e7
Compare
E2E Test Recording✅ Tests passed https://github.com/cloudflare/moltworker/raw/e2e-artifacts/videos/21585705944/20260202-100910.mp4 |
4c946e7 to
326cd14
Compare
- Add e2e job to test.yml (runs in parallel with unit tests) - Convert webm to mp4 using ffmpeg - Generate thumbnail with play button overlay using ImageMagick - Upload video and thumbnail to e2e-artifacts branch - Post PR comment with clickable thumbnail linking to video
326cd14 to
31d9d4c
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.

Very minimal tests at the moment:
This PR is mostly plumbing to allow us to write e2e browser tests like this: https://github.com/cloudflare/moltworker/blob/76a4e8ce252887d00b54e7d6bcdc2c59c0fc94c6/test/e2e/pairing_and_conversation.txt