Skip to content

Commit c41bddf

Browse files
test(ui): disambiguate reverification OTP query
1 parent 6e12cbc commit c41bddf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/ui/src/mosaic/blocks/reverification/reverification.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe('Reverification', () => {
112112
expect(container.querySelector('.cl-card-root')).toBe(card);
113113
expect(container.querySelector('.cl-flow-root')).toBe(flow);
114114
expect(screen.queryByLabelText('Password')).not.toBeInTheDocument();
115-
const otpStep = screen.getByLabelText('Verification code').closest('.cl-flow-step');
115+
const otpStep = screen.getByRole('group', { name: 'Verification code' }).closest('.cl-flow-step');
116116
expect(otpStep).toBeInTheDocument();
117117
expect(otpStep?.style.getPropertyValue('--cl-flow-transition-direction')).toBe('-1');
118118
});

0 commit comments

Comments
 (0)