Repository navigation
Conversation
Point the companion backend default at ohcnetwork/care demo/care-3-1-seed (ohcnetwork/care#3900) so the E2E suite exercises the new default fixtures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Deploying care-preview with
|
| Latest commit: |
db4cc7b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://6f5d8388.care-preview-a7w.pages.dev |
| Branch Preview URL: | https://issues-eng-1009-playwright-c.care-preview-a7w.pages.dev |
🎭 Playwright Test ResultsStatus: ✅ Passed
📊 Detailed results are available in the playwright-final-report artifact. Run: #13935 |
The Care 3.1 default fixtures (ohcnetwork/care#3900) change data the specs relied on. Keep the specs working with both the current and the new fixtures: - Clear admin's saved workspace choice in the auth setup, so encounters open on the standard screens the specs expect instead of a seeded workspace. - Open the fixture state organization (Kerala) by name. Its Governance card label now follows its metadata ("State") instead of "Government". - Match the seeded Pharmacy medicines by their exact old or new names ("Paracetamol" or "Paracetamol 500 mg tablet", likewise Ibuprofen). - Create the external delivery product with a valid UCUM unit instead of copying a fixture product's unit, which the API may reject. - Use a future date range for the empty invoice list, and open an issued invoice that is not a refund for the payment sheet. - Enable the print template watermark with check(), and expect the margins the facility's default template starts a new template with. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
React Doctor found 4 issues in 1 file · 4 warnings · score 89 / 100 (Great) · vs 4 warnings
|
…ences
The value set list crashed ("Couldn't Load the Page") when a value set had no
compose.exclude: the backend omits it when a value set has no exclusions
(ValueSetCompose.exclude is optional), and the Care 3.1 fixtures seed such a
value set. Type exclude as optional and read a missing one as empty.
Specs, for the Care 3.1 fixtures (ohcnetwork/care#3900):
- Find or create the patient's open account in the account setup through
the API. The fixtures leave the active account mid-billing, and the
patient page's search schema drops the status filters the setup sent.
- Link a user in no department in the department user spec: the fixtures
put care-volunteer in a team under Administration.
- Match the queue department option by its leading name; options now carry
the department's description.
- Don't expect a preselected department for a facility admin with several.
- Make Urinalysis Observation a single value before the unit autofill spec,
as the fixtures define it as a panel of components.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Larger-runner (ubuntu-latest-m) jobs fail to start: "recent account payments have failed or your spending limit needs to be increased". Use ubuntu-latest so this PR's suite runs against the Care 3.1 seed. Revert along with the backend default before merging. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Proposed Changes
Related: ohcnetwork/care#3900 (Care 3.1 default fixtures). There is no separate frontend issue.
CARE_BACKEND_REF) fromdeveloptodemo/care-3-1-seed, so every run on this PR builds the backend from that branch and loads its new seed data.handoverpage instead ofupdates(35 specs: questionnaire fill and forms, care team, back navigation and others).govt_org_typemetadata) instead of "Government" (24 specs).statusfilter the setup sent.check(), and expect the margins that the facility's default template starts a new template with.care-role-member(in no department); the queue spec matches the department option by its leading name (options now include the description); the admission permission spec doesn't expect a preselected department for a facility admin in two departments; the unit autofill spec makes Urinalysis Observation a single value first (the fixtures define it as a panel).compose.exclude. The backend'sValueSetCompose.excludeis optional and omitted when empty, and the Care 3.1 fixtures seed such a value set (rounds-vitals).excludeis now typed as optional and read as empty when missing.system-ucum-unitsvalue set rejects ({capsule},{vial},{strip},{each}and others), so the API refuses them on save; the fixtures set a default workspace for theadminlogin;rounds-vitalsis stored withoutexclude.develop(or to the released backend ref).Tagging: @ohcnetwork/care-fe-code-reviewers
Merge Checklist
Validation
Playwright Testswithbackend_ref=demo/care-3-1-seed, run 47066805732) had 1518 passed, 99 failed, 7 not run of 1624. The same frontend commit passed 1624/1624 againstdevelop.demo/care-3-1-seed(ec5dc711) with the default 144-patient fixtures, with the workflow's backend settings (rate limits off, JWKS, JWT lifetimes, gunicorn):npx playwright test --project=setup-auth --project=setup-facility --project=setup-patient --project=setup-account --project=setup-data --workers=4: 10 passed.npx playwright test --project=chromium --workers=3 <the 48 spec files that failed or were flaky against the seed>: 254 passed, 0 failed, 0 flaky.npx tsc --noEmit -p tsconfig.jsonpassed. ESLint and Prettier pass on the changed files.ubuntu-latest, same 8 shards and 6 workers), because larger-runner jobs are blocked by the organization's Actions billing. The runner switch moved to [ENG-1009] Run the Playwright test shards on the standard runner #17539 and is reverted here, so new runs on this PR wait for the billing fix or [ENG-1009] Run the Playwright test shards on the standard runner #17539.developbackend; the PR's own run covers that once the backend default is reverted.