@instructure/ui-menu 10.19.2-snapshot-2 → 10.19.2-snapshot-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,400 +0,0 @@
1
- var _Menu, _Menu2, _Menu3, _Menu4, _MenuItem, _MenuItem2, _MenuItem3, _Menu5, _button, _MenuItem4, _Menu6, _button2, _MenuItem5, _MenuItem6, _button3, _MenuItem7, _MenuItem8, _Menu7, _Menu8, _button4, _MenuItem9, _MenuItem10, _button5, _MenuItem11, _MenuItem12, _button6, _MenuItem13, _MenuItem14, _Menu9, _button7, _MenuItem15, _MenuItem16;
2
- /*
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2015 - present Instructure, Inc.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
-
26
- import { render, screen, fireEvent } from '@testing-library/react';
27
- import { vi } from 'vitest';
28
- import { userEvent } from '@testing-library/user-event';
29
- import '@testing-library/jest-dom';
30
- import { runAxeCheck } from '@instructure/ui-axe-check';
31
- import { Menu, MenuItem, MenuItemSeparator } from '../index';
32
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
33
- describe('<Menu />', () => {
34
- let consoleWarningMock;
35
- let consoleErrorMock;
36
- beforeEach(() => {
37
- // Mocking console to prevent test output pollution and expect for messages
38
- consoleWarningMock = vi.spyOn(console, 'warn').mockImplementation(() => {});
39
- consoleErrorMock = vi.spyOn(console, 'error').mockImplementation(() => {});
40
- });
41
- afterEach(() => {
42
- consoleWarningMock.mockRestore();
43
- consoleErrorMock.mockRestore();
44
- });
45
- describe('without a trigger', () => {
46
- it('should render', () => {
47
- render(_Menu || (_Menu = _jsx(Menu, {
48
- label: "Menu-label-text",
49
- children: _jsx(MenuItem, {
50
- children: "Menu Item Text"
51
- })
52
- })));
53
- const menu = screen.getByRole('menu');
54
- expect(menu).toBeInTheDocument();
55
- expect(menu).toHaveTextContent('Menu Item Text');
56
- expect(menu).toHaveAttribute('aria-label', 'Menu-label-text');
57
- });
58
- it('should meet a11y standards', async () => {
59
- const _render = render(_Menu2 || (_Menu2 = _jsx(Menu, {
60
- label: "Menu-label-text",
61
- children: _jsx(MenuItem, {
62
- children: "Menu Item Text"
63
- })
64
- }))),
65
- container = _render.container;
66
- const axeCheck = await runAxeCheck(container);
67
- expect(axeCheck).toBe(true);
68
- });
69
- it('should meet standards when menu is closed', async () => {
70
- const _render2 = render(_Menu3 || (_Menu3 = _jsxs(Menu, {
71
- trigger: _jsx("button", {
72
- children: "More"
73
- }),
74
- children: [_jsx(MenuItem, {
75
- children: "Learning Mastery"
76
- }), _jsx(MenuItem, {
77
- disabled: true,
78
- children: "Gradebook"
79
- })]
80
- }))),
81
- container = _render2.container;
82
- const axeCheck = await runAxeCheck(container);
83
- expect(axeCheck).toBe(true);
84
- });
85
- it('should meet standards when menu is open', async () => {
86
- const _render3 = render(_Menu4 || (_Menu4 = _jsxs(Menu, {
87
- trigger: _jsx("button", {
88
- children: "More"
89
- }),
90
- defaultShow: true,
91
- children: [_jsx(MenuItem, {
92
- children: "Learning Mastery"
93
- }), _jsx(MenuItem, {
94
- disabled: true,
95
- children: "Gradebook"
96
- })]
97
- }))),
98
- container = _render3.container;
99
- const axeCheck = await runAxeCheck(container);
100
- expect(axeCheck).toBe(true);
101
- });
102
- it('should call onSelect when menu item is selected', async () => {
103
- const onSelect = vi.fn();
104
- const _render4 = render(_jsx(Menu, {
105
- label: "Settings",
106
- onSelect: onSelect,
107
- children: _MenuItem || (_MenuItem = _jsx(MenuItem, {
108
- value: "Test",
109
- children: "Test Item"
110
- }))
111
- })),
112
- getByText = _render4.getByText;
113
- const item = getByText('Test Item');
114
- await userEvent.click(item);
115
- expect(onSelect).toHaveBeenCalled();
116
- expect(onSelect.mock.calls[0][1]).toEqual('Test');
117
- });
118
- it('should not call onSelect when disabled', () => {
119
- const onSelect = vi.fn();
120
- const _render5 = render(_jsx(Menu, {
121
- label: "Settings",
122
- onSelect: onSelect,
123
- disabled: true,
124
- children: _MenuItem2 || (_MenuItem2 = _jsx(MenuItem, {
125
- value: "Account",
126
- children: "Account"
127
- }))
128
- })),
129
- getByText = _render5.getByText;
130
- const itemText = getByText('Account');
131
- const menu = screen.getByRole('menu');
132
- const menuItem = screen.getByRole('menuitem');
133
- expect(itemText).toBeInTheDocument();
134
- expect(menu).toHaveAttribute('aria-disabled', 'true');
135
- expect(menuItem).toHaveAttribute('aria-disabled', 'true');
136
- });
137
- it('should provide a menu ref', () => {
138
- const menuRef = vi.fn();
139
- render(_jsx(Menu, {
140
- label: "Settings",
141
- menuRef: menuRef,
142
- children: _MenuItem3 || (_MenuItem3 = _jsx(MenuItem, {
143
- value: "Account",
144
- children: "Account"
145
- }))
146
- }));
147
- const menu = screen.getByRole('menu');
148
- expect(menuRef).toHaveBeenLastCalledWith(menu);
149
- });
150
- it('should set aria attributes properly', () => {
151
- render(_Menu5 || (_Menu5 = _jsx(Menu, {
152
- disabled: true,
153
- label: "Settings",
154
- children: _jsx(MenuItem, {
155
- value: "Account",
156
- children: "Account"
157
- })
158
- })));
159
- const menu = screen.getByRole('menu');
160
- expect(menu).toHaveAttribute('aria-disabled', 'true');
161
- expect(menu).toHaveAttribute('aria-label', 'Settings');
162
- });
163
- });
164
- describe('with a trigger', () => {
165
- it('should render into a mountNode', () => {
166
- const mountNode = document.createElement('div');
167
- document.body.appendChild(mountNode);
168
- render(_jsx(Menu, {
169
- defaultShow: true,
170
- mountNode: mountNode,
171
- label: "Settings",
172
- trigger: _button || (_button = _jsx("button", {
173
- children: "Settings"
174
- })),
175
- children: _MenuItem4 || (_MenuItem4 = _jsx(MenuItem, {
176
- children: "Account"
177
- }))
178
- }));
179
- expect(mountNode).toHaveTextContent('Account');
180
- document.body.removeChild(mountNode);
181
- });
182
- it('should set aria attributes properly', () => {
183
- render(_Menu6 || (_Menu6 = _jsxs(Menu, {
184
- trigger: _jsx("button", {
185
- children: "Settings"
186
- }),
187
- defaultShow: true,
188
- children: [_jsx(MenuItem, {
189
- children: "Learning Mastery"
190
- }), _jsx(MenuItem, {
191
- disabled: true,
192
- children: "Gradebook"
193
- }), _jsx(MenuItem, {
194
- type: "radio",
195
- defaultChecked: true,
196
- children: "Default (Grid view)"
197
- }), _jsx(MenuItem, {
198
- type: "radio",
199
- children: "Individual (List view)"
200
- }), _jsx(MenuItem, {
201
- type: "checkbox",
202
- defaultChecked: true,
203
- children: "Include Anchor Standards"
204
- }), _jsx(MenuItemSeparator, {}), _jsx(MenuItem, {
205
- children: "Open grading history..."
206
- })]
207
- })));
208
- const menu = screen.getByRole('menu');
209
- const trigger = screen.getByRole('button', {
210
- name: 'Settings'
211
- });
212
- expect(menu).toBeInTheDocument();
213
- expect(menu).toHaveAttribute('aria-labelledby', trigger.getAttribute('id'));
214
- });
215
- it('should call onFocus on focus', () => {
216
- const onFocus = vi.fn();
217
- const _render6 = render(_jsxs(Menu, {
218
- trigger: _button2 || (_button2 = _jsx("button", {
219
- children: "More"
220
- })),
221
- onFocus: onFocus,
222
- children: [_MenuItem5 || (_MenuItem5 = _jsx(MenuItem, {
223
- children: "Learning Mastery"
224
- })), _MenuItem6 || (_MenuItem6 = _jsx(MenuItem, {
225
- disabled: true,
226
- children: "Gradebook"
227
- }))]
228
- })),
229
- getByRole = _render6.getByRole;
230
- const triggerButton = getByRole('button', {
231
- name: 'More'
232
- });
233
- fireEvent.focus(triggerButton);
234
- expect(onFocus).toHaveBeenCalled();
235
- });
236
- it('should render when show and onToggle props are set', () => {
237
- const _render7 = render(_jsxs(Menu, {
238
- trigger: _button3 || (_button3 = _jsx("button", {
239
- children: "More"
240
- })),
241
- show: true,
242
- onToggle: () => {},
243
- children: [_MenuItem7 || (_MenuItem7 = _jsx(MenuItem, {
244
- children: "Test1"
245
- })), _MenuItem8 || (_MenuItem8 = _jsx(MenuItem, {
246
- disabled: true,
247
- children: "Test2"
248
- }))]
249
- })),
250
- getByRole = _render7.getByRole,
251
- getAllByRole = _render7.getAllByRole,
252
- queryByText = _render7.queryByText;
253
- const menuItems = getAllByRole('menuitem');
254
- const triggerButton = getByRole('button', {
255
- name: 'More'
256
- });
257
- const menuItem1 = queryByText('Test1');
258
- const menuItem2 = queryByText('Test2');
259
- expect(triggerButton).toBeInTheDocument();
260
- expect(menuItems).toHaveLength(2);
261
- expect(menuItem1).toBeInTheDocument();
262
- expect(menuItem2).toBeInTheDocument();
263
- });
264
- it('should not show by default', () => {
265
- const _render8 = render(_Menu7 || (_Menu7 = _jsxs(Menu, {
266
- trigger: _jsx("button", {
267
- children: "More"
268
- }),
269
- children: [_jsx(MenuItem, {
270
- children: "Test1"
271
- }), _jsx(MenuItem, {
272
- disabled: true,
273
- children: "Test2"
274
- })]
275
- }))),
276
- queryByText = _render8.queryByText,
277
- getByRole = _render8.getByRole;
278
- const triggerButton = getByRole('button', {
279
- name: 'More'
280
- });
281
- const menuItem1 = queryByText('Test1');
282
- const menuItem2 = queryByText('Test2');
283
- expect(triggerButton).toBeInTheDocument();
284
- expect(menuItem1).not.toBeInTheDocument();
285
- expect(menuItem2).not.toBeInTheDocument();
286
- });
287
- it('should accept a default show', () => {
288
- const _render9 = render(_Menu8 || (_Menu8 = _jsxs(Menu, {
289
- trigger: _jsx("button", {
290
- children: "More"
291
- }),
292
- defaultShow: true,
293
- children: [_jsx(MenuItem, {
294
- children: "Test1"
295
- }), _jsx(MenuItem, {
296
- disabled: true,
297
- children: "Test2"
298
- })]
299
- }))),
300
- queryByText = _render9.queryByText,
301
- getByRole = _render9.getByRole;
302
- const triggerButton = getByRole('button', {
303
- name: 'More'
304
- });
305
- const menuItem1 = queryByText('Test1');
306
- const menuItem2 = queryByText('Test2');
307
- expect(triggerButton).toBeInTheDocument();
308
- expect(menuItem1).toBeInTheDocument();
309
- expect(menuItem2).toBeInTheDocument();
310
- });
311
- it('should provide a menu ref', () => {
312
- const menuRef = vi.fn();
313
- render(_jsxs(Menu, {
314
- trigger: _button4 || (_button4 = _jsx("button", {
315
- children: "More"
316
- })),
317
- defaultShow: true,
318
- menuRef: menuRef,
319
- children: [_MenuItem9 || (_MenuItem9 = _jsx(MenuItem, {
320
- children: "Learning Mastery"
321
- })), _MenuItem10 || (_MenuItem10 = _jsx(MenuItem, {
322
- disabled: true,
323
- children: "Gradebook"
324
- }))]
325
- }));
326
- const menu = screen.getByRole('menu');
327
- expect(menuRef).toHaveBeenCalledWith(menu);
328
- });
329
- it('should provide a popoverRef ref', () => {
330
- const popoverRef = vi.fn();
331
- render(_jsxs(Menu, {
332
- trigger: _button5 || (_button5 = _jsx("button", {
333
- children: "More"
334
- })),
335
- defaultShow: true,
336
- popoverRef: popoverRef,
337
- children: [_MenuItem11 || (_MenuItem11 = _jsx(MenuItem, {
338
- children: "Learning Mastery"
339
- })), _MenuItem12 || (_MenuItem12 = _jsx(MenuItem, {
340
- disabled: true,
341
- children: "Gradebook"
342
- }))]
343
- }));
344
- expect(popoverRef).toHaveBeenCalled();
345
- });
346
- it('should call onToggle on click', () => {
347
- const onToggle = vi.fn();
348
- render(_jsxs(Menu, {
349
- trigger: _button6 || (_button6 = _jsx("button", {
350
- children: "More"
351
- })),
352
- onToggle: onToggle,
353
- children: [_MenuItem13 || (_MenuItem13 = _jsx(MenuItem, {
354
- children: "Learning Mastery"
355
- })), _MenuItem14 || (_MenuItem14 = _jsx(MenuItem, {
356
- disabled: true,
357
- children: "Gradebook"
358
- }))]
359
- }));
360
- const trigger = screen.getByRole('button');
361
- fireEvent.click(trigger);
362
- expect(onToggle).toHaveBeenCalled();
363
- });
364
- it('should have an aria-haspopup attribute', () => {
365
- render(_Menu9 || (_Menu9 = _jsxs(Menu, {
366
- trigger: _jsx("button", {
367
- children: "More"
368
- }),
369
- children: [_jsx(MenuItem, {
370
- children: "Learning Mastery"
371
- }), _jsx(MenuItem, {
372
- disabled: true,
373
- children: "Gradebook"
374
- })]
375
- })));
376
- const trigger = screen.getByRole('button');
377
- expect(trigger).toHaveAttribute('aria-haspopup');
378
- });
379
- it('should pass positionContainerDisplay prop to Popover', () => {
380
- let popoverRef = null;
381
- render(_jsxs(Menu, {
382
- trigger: _button7 || (_button7 = _jsx("button", {
383
- children: "More"
384
- })),
385
- popoverRef: e => {
386
- popoverRef = e;
387
- },
388
- positionContainerDisplay: "block",
389
- children: [_MenuItem15 || (_MenuItem15 = _jsx(MenuItem, {
390
- children: "Learning Mastery"
391
- })), _MenuItem16 || (_MenuItem16 = _jsx(MenuItem, {
392
- disabled: true,
393
- children: "Gradebook"
394
- }))]
395
- }));
396
- const popoverProps = popoverRef.props;
397
- expect(popoverProps.positionContainerDisplay).toBe('block');
398
- });
399
- });
400
- });
@@ -1,154 +0,0 @@
1
- "use strict";
2
-
3
- var _react = require("@testing-library/react");
4
- var _vitest = require("vitest");
5
- require("@testing-library/jest-dom");
6
- var _index = require("../index");
7
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
8
- var _MenuItem, _MenuItem2, _ExtendedMenuItem, _MenuItem3, _MenuItem4, _MenuItem5, _MenuItem6, _MenuItem7, _MenuItem8, _MenuItem9;
9
- /*
10
- * The MIT License (MIT)
11
- *
12
- * Copyright (c) 2015 - present Instructure, Inc.
13
- *
14
- * Permission is hereby granted, free of charge, to any person obtaining a copy
15
- * of this software and associated documentation files (the "Software"), to deal
16
- * in the Software without restriction, including without limitation the rights
17
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
- * copies of the Software, and to permit persons to whom the Software is
19
- * furnished to do so, subject to the following conditions:
20
- *
21
- * The above copyright notice and this permission notice shall be included in all
22
- * copies or substantial portions of the Software.
23
- *
24
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
- * SOFTWARE.
31
- */
32
- const ExtendedMenuItem = ({
33
- ...props
34
- }) => {
35
- return (0, _jsxRuntime.jsx)(_index.MenuItem, {
36
- ...props
37
- });
38
- };
39
- describe('<MenuItem />', () => {
40
- it('should render', () => {
41
- (0, _react.render)(_MenuItem || (_MenuItem = (0, _jsxRuntime.jsx)(_index.MenuItem, {
42
- children: "Menu Item Text"
43
- })));
44
- const menuItem = _react.screen.getByText('Menu Item Text');
45
- expect(menuItem).toBeInTheDocument();
46
- });
47
- it('should render as a link when an href is provided', () => {
48
- (0, _react.render)(_MenuItem2 || (_MenuItem2 = (0, _jsxRuntime.jsx)(_index.MenuItem, {
49
- href: "example.html",
50
- children: "Menu Item Text"
51
- })));
52
- const menuItem = _react.screen.getByRole('menuitem');
53
- expect(menuItem).toBeInTheDocument();
54
- expect(menuItem).toHaveAttribute('href', 'example.html');
55
- });
56
- it('should render as a link when a to is provided', () => {
57
- (0, _react.render)(_ExtendedMenuItem || (_ExtendedMenuItem = (0, _jsxRuntime.jsx)(ExtendedMenuItem, {
58
- to: "/example",
59
- children: "Hello"
60
- })));
61
- const menuItem = _react.screen.getByRole('menuitem');
62
- expect(menuItem).toHaveAttribute('to', '/example');
63
- });
64
- it('should call onSelect after click', () => {
65
- const onSelect = _vitest.vi.fn();
66
- (0, _react.render)((0, _jsxRuntime.jsx)(_index.MenuItem, {
67
- onSelect: onSelect,
68
- value: "foo",
69
- children: "Hello"
70
- }));
71
- const menuItem = _react.screen.getByRole('menuitem');
72
- _react.fireEvent.click(menuItem);
73
- expect(onSelect).toHaveBeenCalledWith(expect.any(Object), 'foo', true, expect.any(Object));
74
- });
75
- it('should call onClick after click', () => {
76
- const onClick = _vitest.vi.fn();
77
- (0, _react.render)((0, _jsxRuntime.jsx)(_index.MenuItem, {
78
- onClick: onClick,
79
- value: "foo",
80
- children: "Hello"
81
- }));
82
- const menuItem = _react.screen.getByRole('menuitem');
83
- _react.fireEvent.click(menuItem);
84
- expect(onClick).toHaveBeenCalled();
85
- });
86
- it('should set the tabIndex attribute', () => {
87
- (0, _react.render)(_MenuItem3 || (_MenuItem3 = (0, _jsxRuntime.jsx)(_index.MenuItem, {
88
- children: "Hello"
89
- })));
90
- const menuItem = _react.screen.getByRole('menuitem');
91
- expect(menuItem).toHaveAttribute('tabIndex', '-1');
92
- });
93
- it('should set the aria-controls attribute', () => {
94
- (0, _react.render)(_MenuItem4 || (_MenuItem4 = (0, _jsxRuntime.jsx)(_index.MenuItem, {
95
- controls: "testId",
96
- children: "Hello"
97
- })));
98
- const menuItem = _react.screen.getByRole('menuitem');
99
- expect(menuItem).toHaveAttribute('aria-controls', 'testId');
100
- });
101
- it('should set the aria-disabled attribute', () => {
102
- (0, _react.render)(_MenuItem5 || (_MenuItem5 = (0, _jsxRuntime.jsx)(_index.MenuItem, {
103
- disabled: true,
104
- children: "Hello"
105
- })));
106
- const menuItem = _react.screen.getByRole('menuitem');
107
- expect(menuItem).toHaveAttribute('aria-disabled', 'true');
108
- });
109
- it('should set the aria-checked attribute when defaultSelected prop is true', () => {
110
- (0, _react.render)(_MenuItem6 || (_MenuItem6 = (0, _jsxRuntime.jsx)(_index.MenuItem, {
111
- type: "checkbox",
112
- defaultSelected: true,
113
- children: "Hello"
114
- })));
115
- const menuItem = _react.screen.getByRole('menuitemcheckbox');
116
- expect(menuItem).toHaveAttribute('aria-checked', 'true');
117
- });
118
- it('should set the aria-checked attribute when selected prop is true', () => {
119
- (0, _react.render)((0, _jsxRuntime.jsx)(_index.MenuItem, {
120
- type: "checkbox",
121
- selected: true,
122
- onSelect: _vitest.vi.fn(),
123
- children: "Hello"
124
- }));
125
- const menuItem = _react.screen.getByRole('menuitemcheckbox');
126
- expect(menuItem).toHaveAttribute('aria-checked', 'true');
127
- });
128
- it('should default to the "menuitem" role', () => {
129
- const _render = (0, _react.render)(_MenuItem7 || (_MenuItem7 = (0, _jsxRuntime.jsx)(_index.MenuItem, {
130
- children: "Menu Item Text"
131
- }))),
132
- container = _render.container;
133
- const menuItem = container.querySelector("span[class$='-menuItem']");
134
- expect(menuItem).toHaveAttribute('role', 'menuitem');
135
- });
136
- it('should set the role to "menuitemcheckbox" when the type is "checkbox"', () => {
137
- const _render2 = (0, _react.render)(_MenuItem8 || (_MenuItem8 = (0, _jsxRuntime.jsx)(_index.MenuItem, {
138
- type: "checkbox",
139
- children: "Hello"
140
- }))),
141
- container = _render2.container;
142
- const menuItem = container.querySelector("span[class$='-menuItem']");
143
- expect(menuItem).toHaveAttribute('role', 'menuitemcheckbox');
144
- });
145
- it('should set the role to "menuitemradio" when the type is "radio"', () => {
146
- const _render3 = (0, _react.render)(_MenuItem9 || (_MenuItem9 = (0, _jsxRuntime.jsx)(_index.MenuItem, {
147
- type: "radio",
148
- children: "Hello"
149
- }))),
150
- container = _render3.container;
151
- const menuItem = container.querySelector("span[class$='-menuItem']");
152
- expect(menuItem).toHaveAttribute('role', 'menuitemradio');
153
- });
154
- });