Fix the frontend test because of new additions
CI / backend (push) Canceled after 22s
CI / frontend (push) Failing after 1m33s

This commit is contained in:
2026-08-12 06:21:23 +08:00
parent 53338906aa
commit 48c5c93358
2 changed files with 7 additions and 2 deletions
@@ -121,7 +121,7 @@ describe('ApprovalForm', () => {
it('uses clinical framing distinct from verification', () => { it('uses clinical framing distinct from verification', () => {
const wrapper = mountForm() const wrapper = mountForm()
expect(wrapper.find('[data-testid="approval-form"]').classes()).toContain('approval-frame') expect(wrapper.find('[data-testid="approval-form"]').classes()).toContain('approval-frame')
expect(wrapper.text()).toContain('Clinical Approval') expect(wrapper.text()).toContain('Sign-off review')
expect(wrapper.text()).toContain('Clinical sign-off before promotion') expect(wrapper.text()).toContain('Clinical sign-off before promotion')
expect(wrapper.text()).toContain('Verified draft') expect(wrapper.text()).toContain('Verified draft')
}) })
@@ -113,7 +113,12 @@ describe('useBatchStore', () => {
const store = useBatchStore() const store = useBatchStore()
await store.getBatch('b1') await store.getBatch('b1')
expect(store.currentBatch).toEqual(batch) expect(store.currentBatch).toEqual({
...batch,
enteredByUserName: null,
verifiedByUserName: null,
approvedByUserName: null,
})
expect(store.documentUrl).toBe('https://example.com/doc') expect(store.documentUrl).toBe('https://example.com/doc')
}) })