File tree Expand file tree Collapse file tree 5 files changed +28
-22
lines changed Expand file tree Collapse file tree 5 files changed +28
-22
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ describe('ActionMenu', () => {
42
42
Component : ActionMenu ,
43
43
systemPropArray : [ COMMON ] ,
44
44
options : { skipAs : true , skipSx : true } ,
45
- toRender : ( ) => < ActionMenu items = { [ ] } />
45
+ toRender : ( ) => (
46
+ < SSRProvider >
47
+ < ActionMenu items = { [ ] } />
48
+ </ SSRProvider >
49
+ )
46
50
} )
47
51
48
52
checkExports ( 'ActionMenu' , {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import theme from '../theme'
6
6
import { DropdownMenu , DropdownButton } from '../DropdownMenu'
7
7
import { COMMON } from '../constants'
8
8
import { behavesAsComponent , checkExports } from '../utils/testing'
9
- import { BaseStyles , ThemeProvider } from '..'
9
+ import { BaseStyles , ThemeProvider , SSRProvider } from '..'
10
10
import { ItemInput } from '../ActionList/List'
11
11
12
12
expect . extend ( toHaveNoViolations )
@@ -18,16 +18,18 @@ function SimpleDropdownMenu(): JSX.Element {
18
18
19
19
return (
20
20
< ThemeProvider theme = { theme } >
21
- < BaseStyles >
22
- < div id = "something-else" > X</ div >
23
- < DropdownMenu
24
- items = { items }
25
- placeholder = "Select an Option"
26
- selectedItem = { selectedItem }
27
- onChange = { setSelectedItem }
28
- />
29
- < div id = "portal-root" > </ div >
30
- </ BaseStyles >
21
+ < SSRProvider >
22
+ < BaseStyles >
23
+ < div id = "something-else" > X</ div >
24
+ < DropdownMenu
25
+ items = { items }
26
+ placeholder = "Select an Option"
27
+ selectedItem = { selectedItem }
28
+ onChange = { setSelectedItem }
29
+ />
30
+ < div id = "portal-root" > </ div >
31
+ </ BaseStyles >
32
+ </ SSRProvider >
31
33
</ ThemeProvider >
32
34
)
33
35
}
Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ exports[`ActionMenu renders consistently 1`] = `
70
70
<button
71
71
aria-haspopup = " true"
72
72
aria-label = " menu"
73
- aria-labelledby = " react-aria-4612506814 -1"
73
+ aria-labelledby = " react-aria-0 -1"
74
74
className = " c0"
75
- id = " react-aria-4612506814 -1"
75
+ id = " react-aria-0 -1"
76
76
onClick = { [Function ]}
77
77
onKeyDown = { [Function ]}
78
78
tabIndex = { 0 }
Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ exports[`AnchoredOverlay renders consistently 1`] = `
81
81
>
82
82
<button
83
83
aria-haspopup = " true"
84
- aria-labelledby = " react-aria-5484257793 -1"
84
+ aria-labelledby = " react-aria-0 -1"
85
85
className = " c1"
86
- id = " react-aria-5484257793 -1"
86
+ id = " react-aria-0 -1"
87
87
onClick = { [Function ]}
88
88
onKeyDown = { [Function ]}
89
89
tabIndex = { 0 }
@@ -197,9 +197,9 @@ Object {
197
197
>
198
198
<button
199
199
aria-haspopup = " true"
200
- aria-labelledby = " react-aria-5484257793-8 "
200
+ aria-labelledby = " react-aria-0-1 "
201
201
class = " c1"
202
- id = " react-aria-5484257793-8 "
202
+ id = " react-aria-0-1 "
203
203
tabindex = " 0"
204
204
>
205
205
Anchor Button
@@ -242,9 +242,9 @@ Object {
242
242
>
243
243
<button
244
244
aria-haspopup = " true"
245
- aria-labelledby = " react-aria-5484257793-8 "
245
+ aria-labelledby = " react-aria-0-1 "
246
246
class = " ButtonBase-sc-181ps9o-0 Button-xjtz72-0 jhgDtb"
247
- id = " react-aria-5484257793-8 "
247
+ id = " react-aria-0-1 "
248
248
tabindex = " 0"
249
249
>
250
250
Anchor Button
Original file line number Diff line number Diff line change @@ -73,9 +73,9 @@ exports[`DropdownMenu renders consistently 1`] = `
73
73
74
74
<button
75
75
aria-haspopup = " true"
76
- aria-labelledby = " react-aria-64373930 -1"
76
+ aria-labelledby = " react-aria-4007736549 -1"
77
77
className = " c0"
78
- id = " react-aria-64373930 -1"
78
+ id = " react-aria-4007736549 -1"
79
79
onClick = { [Function ]}
80
80
onKeyDown = { [Function ]}
81
81
tabIndex = { 0 }
You can’t perform that action at this time.
0 commit comments