Skip to content

Commit a22ab77

Browse files
committed
Fix up tests
1 parent 72b57e3 commit a22ab77

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Button2/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ export {IconButton}
77
export const Button = Object.assign(ButtonComponent, {
88
Counter
99
})
10+
11+
Button.displayName = 'Button'

src/__tests__/__snapshots__/AnchoredOverlay.test.tsx.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ exports[`AnchoredOverlay should render consistently when open 1`] = `
216216
style="top: 4px; left: 0px; --styled-overlay-visibility: visible;"
217217
width="auto"
218218
>
219+
<span
220+
aria-hidden="true"
221+
class="sentinel"
222+
tabindex="0"
223+
/>
219224
<button
220225
class="focus-visible"
221226
data-focus-visible-added=""
@@ -224,6 +229,11 @@ exports[`AnchoredOverlay should render consistently when open 1`] = `
224229
>
225230
Focusable Child
226231
</button>
232+
<span
233+
aria-hidden="true"
234+
class="sentinel"
235+
tabindex="0"
236+
/>
227237
</div>
228238
</div>
229239
</div>

0 commit comments

Comments
 (0)