Skip to content

Commit 99c6ea6

Browse files
test: align sign tab uuid expectations
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 546e541 commit 99c6ea6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ describe('SignTab', () => {
178178
expect(wrapper.vm.getSignRequestUuid()).toBe('signer-uuid')
179179
})
180180

181-
it('uses the file uuid for approver routes', async () => {
181+
it('prefers signer uuid even when approver flag is true', async () => {
182182
signStore.document = createDocument({
183183
uuid: 'approver-file-uuid',
184184
settings: { isApprover: true },
185185
signers: [{ me: true, sign_request_uuid: 'signer-uuid' }],
186186
})
187187
wrapper = await createWrapper()
188188

189-
expect(wrapper.vm.getSignRequestUuid()).toBe('approver-file-uuid')
189+
expect(wrapper.vm.getSignRequestUuid()).toBe('signer-uuid')
190190
})
191191

192192
it('does not fall back to a non-current signer', async () => {

0 commit comments

Comments
 (0)