Fix the frontend test because of new additions
This commit is contained in:
@@ -121,7 +121,7 @@ describe('ApprovalForm', () => {
|
||||
it('uses clinical framing distinct from verification', () => {
|
||||
const wrapper = mountForm()
|
||||
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('Verified draft')
|
||||
})
|
||||
|
||||
@@ -113,7 +113,12 @@ describe('useBatchStore', () => {
|
||||
const store = useBatchStore()
|
||||
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')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user