test(playwright): local HAPI + testcontainers e2e setup#1990
Open
leoniedickson wants to merge 5 commits into
Open
test(playwright): local HAPI + testcontainers e2e setup#1990leoniedickson wants to merge 5 commits into
leoniedickson wants to merge 5 commits into
Conversation
… testcontainers Replaces the live proxy.smartforms.io dependency with ephemeral Docker containers (HAPI FHIR + aehrc/smart-launcher-v2) started in globalSetup, eliminating accumulated test data on the remote server and making the suite self-contained and deterministic. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Ensures buildSourceResponse has completed before interacting with the form, fixing a WebKit flakiness where the pre-population computation races with user interactions. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Bump canonical version pin from 0.3.0 to 0.4.0-assembled and update the Consent tab interaction from boolean to radio-button choice item, which is how consent fields are rendered in the new questionnaire version. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
testcontainers v12 bundles undici v8+ which calls webidl.util.markAsUncloneable, an API only available in Node >= 22. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
saving.spec.tsto use the dynamic local EHR URL, wait for theForm populatedsnackbar before interacting with the form (fixes WebKit flakiness wherebuildSourceResponseraces with test interactions), and targets the correct item type for MBS715 v0.4.0-assembled (radio choice instead of boolean on the Consent tab)globals.tsfrom0.3.0-assembledto0.4.0-assembledwebidl.util.markAsUncloneableis Node 22+ only)Test plan
npm run playwright -w apps/smart-forms-app)🤖 Generated with Claude Code