Skip to content

Commit ac04f2f

Browse files
committed
test: align request signature tab spec
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> (cherry picked from commit a430b9d)
1 parent bd6b6e0 commit ac04f2f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/tests/components/RightSidebar/RequestSignatureTab.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -970,14 +970,15 @@ describe('RequestSignatureTab - Critical Business Rules', () => {
970970
it('does not propagate legacy signRequestId into signerToEdit', async () => {
971971
await updateFile({
972972
signers: [
973-
{ email: 'signer1@example.com', displayName: 'Signer 1', signRequestId: 42, identify: 'signer1@example.com', identifyMethods: [{ method: 'email', value: 'signer1@example.com' }] },
973+
{ email: 'signer1@example.com', displayName: 'Signer 1', signRequestId: 42, identifyMethods: [{ method: 'email', value: 'signer1@example.com' }] },
974974
],
975975
})
976976

977977
const signer = filesStore.files[1]!.signers![0]!
978978
wrapper.vm.editSigner(signer)
979979

980-
expect(wrapper.vm.signerToEdit.identify).toBe('signer1@example.com')
980+
expect(wrapper.vm.signerToEdit.identify).toBeUndefined()
981+
expect(wrapper.vm.signerToEdit.identifyMethods).toEqual([{ method: 'email', value: 'signer1@example.com' }])
981982
expect('signRequestId' in wrapper.vm.signerToEdit).toBe(false)
982983
})
983984

@@ -1000,7 +1001,6 @@ describe('RequestSignatureTab - Critical Business Rules', () => {
10001001
])
10011002
await setVmState({
10021003
signerToEdit: {
1003-
identify: 'test@example.com',
10041004
identifyMethods: [{ method: 'sms' }],
10051005
},
10061006
})
@@ -1012,7 +1012,6 @@ describe('RequestSignatureTab - Critical Business Rules', () => {
10121012
await updateMethods([{ name: 'sms', enabled: false }])
10131013
await setVmState({
10141014
signerToEdit: {
1015-
identify: 'test@example.com',
10161015
identifyMethods: [{ method: 'sms' }],
10171016
},
10181017
})

0 commit comments

Comments
 (0)