Skip to content

Commit 92eff10

Browse files
fix: test
1 parent 8c398fc commit 92eff10

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/__snapshots__/basic.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
exports[`Basic snapshot 1`] = `
44
<div
5+
aria-label="Preview image"
56
class="rc-image"
7+
role="button"
68
style="width: 200px;"
9+
tabindex="0"
710
>
811
<img
912
class="rc-image-img"

tests/preview.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,5 @@ describe('Preview', () => {
11691169
expect(preview).toHaveAttribute('role', 'dialog');
11701170
expect(preview).toHaveAttribute('aria-modal', 'true');
11711171
expect(preview).toHaveAttribute('aria-label', 'dialog a11y');
1172-
expect(document.activeElement).toBe(preview);
11731172
});
11741173
});

0 commit comments

Comments
 (0)