@instructure/ui-drilldown 10.2.0 → 10.2.1-snapshot-1

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/es/Drilldown/DrilldownGroup/__new-tests__/DrilldownGroup.test.js +573 -0
  3. package/es/Drilldown/DrilldownOption/__new-tests__/DrilldownOption.test.js +595 -0
  4. package/es/Drilldown/DrilldownPage/__new-tests__/DrilldownPage.test.js +299 -0
  5. package/es/Drilldown/DrilldownSeparator/__new-tests__/DrilldownSeparator.test.js +56 -0
  6. package/es/Drilldown/__new-tests__/Drilldown.test.js +818 -0
  7. package/lib/Drilldown/DrilldownGroup/__new-tests__/DrilldownGroup.test.js +575 -0
  8. package/lib/Drilldown/DrilldownOption/__new-tests__/DrilldownOption.test.js +598 -0
  9. package/lib/Drilldown/DrilldownPage/__new-tests__/DrilldownPage.test.js +301 -0
  10. package/lib/Drilldown/DrilldownSeparator/__new-tests__/DrilldownSeparator.test.js +58 -0
  11. package/lib/Drilldown/__new-tests__/Drilldown.test.js +819 -0
  12. package/package.json +25 -20
  13. package/src/Drilldown/DrilldownGroup/__new-tests__/DrilldownGroup.test.tsx +634 -0
  14. package/src/Drilldown/DrilldownOption/__new-tests__/DrilldownOption.test.tsx +774 -0
  15. package/src/Drilldown/DrilldownPage/__new-tests__/DrilldownPage.test.tsx +352 -0
  16. package/src/Drilldown/{locator.ts → DrilldownSeparator/__new-tests__/DrilldownSeparator.test.tsx} +35 -3
  17. package/src/Drilldown/__new-tests__/Drilldown.test.tsx +979 -0
  18. package/tsconfig.build.json +3 -2
  19. package/tsconfig.build.tsbuildinfo +1 -1
  20. package/types/Drilldown/DrilldownGroup/__new-tests__/DrilldownGroup.test.d.ts +2 -0
  21. package/types/Drilldown/DrilldownGroup/__new-tests__/DrilldownGroup.test.d.ts.map +1 -0
  22. package/types/Drilldown/DrilldownOption/__new-tests__/DrilldownOption.test.d.ts +2 -0
  23. package/types/Drilldown/DrilldownOption/__new-tests__/DrilldownOption.test.d.ts.map +1 -0
  24. package/types/Drilldown/DrilldownPage/__new-tests__/DrilldownPage.test.d.ts +2 -0
  25. package/types/Drilldown/DrilldownPage/__new-tests__/DrilldownPage.test.d.ts.map +1 -0
  26. package/types/Drilldown/DrilldownSeparator/__new-tests__/DrilldownSeparator.test.d.ts +2 -0
  27. package/types/Drilldown/DrilldownSeparator/__new-tests__/DrilldownSeparator.test.d.ts.map +1 -0
  28. package/types/Drilldown/__new-tests__/Drilldown.test.d.ts +2 -0
  29. package/types/Drilldown/__new-tests__/Drilldown.test.d.ts.map +1 -0
  30. package/es/Drilldown/DrilldownLocator.js +0 -99
  31. package/es/Drilldown/locator.js +0 -27
  32. package/lib/Drilldown/DrilldownLocator.js +0 -106
  33. package/lib/Drilldown/locator.js +0 -37
  34. package/src/Drilldown/DrilldownLocator.ts +0 -104
  35. package/types/Drilldown/DrilldownLocator.d.ts +0 -7484
  36. package/types/Drilldown/DrilldownLocator.d.ts.map +0 -1
  37. package/types/Drilldown/locator.d.ts +0 -4
  38. package/types/Drilldown/locator.d.ts.map +0 -1
@@ -0,0 +1,301 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _react = _interopRequireDefault(require("react"));
5
+ var _react2 = require("@testing-library/react");
6
+ var _vitest = require("vitest");
7
+ var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
8
+ require("@testing-library/jest-dom");
9
+ var _index = require("../../index");
10
+ var _Drilldown, _Drilldown2, _Drilldown$Option, _Drilldown$Option2, _Drilldown3, _Drilldown$Option3, _Drilldown$Option4, _Drilldown$Option5, _Drilldown4, _Drilldown5, _Drilldown$Option6, _Drilldown$Option7, _Drilldown6, _Drilldown7, _Drilldown8, _Drilldown9, _Drilldown10;
11
+ /*
12
+ * The MIT License (MIT)
13
+ *
14
+ * Copyright (c) 2015 - present Instructure, Inc.
15
+ *
16
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ * of this software and associated documentation files (the "Software"), to deal
18
+ * in the Software without restriction, including without limitation the rights
19
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ * copies of the Software, and to permit persons to whom the Software is
21
+ * furnished to do so, subject to the following conditions:
22
+ *
23
+ * The above copyright notice and this permission notice shall be included in all
24
+ * copies or substantial portions of the Software.
25
+ *
26
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
+ * SOFTWARE.
33
+ */
34
+ describe('<Drilldown.Page />', () => {
35
+ let consoleWarningMock;
36
+ let consoleErrorMock;
37
+ beforeEach(() => {
38
+ // Mocking console to prevent test output pollution and expect for messages
39
+ consoleWarningMock = _vitest.vi.spyOn(console, 'warn').mockImplementation(() => {});
40
+ consoleErrorMock = _vitest.vi.spyOn(console, 'error').mockImplementation(() => {});
41
+ });
42
+ afterEach(() => {
43
+ consoleWarningMock.mockRestore();
44
+ consoleErrorMock.mockRestore();
45
+ });
46
+ it("shouldn't render non-DrilldownPage children", async () => {
47
+ (0, _react2.render)(_Drilldown || (_Drilldown = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
48
+ rootPageId: "page0"
49
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
50
+ id: "page0"
51
+ }, /*#__PURE__*/_react.default.createElement("div", {
52
+ id: "testDiv"
53
+ }, "Div")))));
54
+ const nonPageChild = _react2.screen.queryByText('DIV');
55
+ expect(nonPageChild).not.toBeInTheDocument();
56
+ });
57
+ describe('header title', () => {
58
+ it('should be displayed in the header', async () => {
59
+ const _render = (0, _react2.render)(_Drilldown2 || (_Drilldown2 = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
60
+ rootPageId: "page0"
61
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
62
+ id: "page0",
63
+ renderTitle: "HeaderTitleString"
64
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
65
+ id: "option1"
66
+ }, "Option"))))),
67
+ container = _render.container;
68
+ const titleContainer = container.querySelector('[id^="DrilldownHeader-Title-Label_"]');
69
+ const title = _react2.screen.queryByText('HeaderTitleString');
70
+ expect(titleContainer).toBeInTheDocument();
71
+ expect(title).toBeInTheDocument();
72
+ });
73
+ it('should be displayed when function is passed', async () => {
74
+ (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
75
+ rootPageId: "page0"
76
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
77
+ id: "page0",
78
+ renderTitle: () => 'HeaderTitleFunction'
79
+ }, _Drilldown$Option || (_Drilldown$Option = /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
80
+ id: "option1"
81
+ }, "Option")))));
82
+ const title = _react2.screen.queryByText('HeaderTitleFunction');
83
+ expect(title).toBeInTheDocument();
84
+ });
85
+ it("shouldn't be displayed when function has no return value", async () => {
86
+ const _render2 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
87
+ rootPageId: "page0"
88
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
89
+ id: "page0",
90
+ renderTitle: () => null
91
+ }, _Drilldown$Option2 || (_Drilldown$Option2 = /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
92
+ id: "option1"
93
+ }, "Option"))))),
94
+ container = _render2.container;
95
+ const title = container.querySelector('[id^="DrilldownHeader-Title-Label_"]');
96
+ const listItem = container.querySelector('li');
97
+ expect(title).not.toBeInTheDocument();
98
+ expect(listItem).toBeInTheDocument();
99
+ });
100
+ });
101
+ describe('header action label', () => {
102
+ it('should be displayed in the header', async () => {
103
+ (0, _react2.render)(_Drilldown3 || (_Drilldown3 = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
104
+ rootPageId: "page0"
105
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
106
+ id: "page0",
107
+ renderActionLabel: "HeaderActionLabelString"
108
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
109
+ id: "option1"
110
+ }, "Option")))));
111
+ const actionLabel = _react2.screen.queryByText('HeaderActionLabelString');
112
+ expect(actionLabel).toBeInTheDocument();
113
+ });
114
+ it('should be displayed when function is passed', async () => {
115
+ (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
116
+ rootPageId: "page0"
117
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
118
+ id: "page0",
119
+ renderActionLabel: () => 'HeaderActionLabelFunction'
120
+ }, _Drilldown$Option3 || (_Drilldown$Option3 = /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
121
+ id: "option1"
122
+ }, "Option")))));
123
+ const actionLabel = _react2.screen.queryByText('HeaderActionLabelFunction');
124
+ expect(actionLabel).toBeInTheDocument();
125
+ });
126
+ it("shouldn't be displayed when function has no return value", async () => {
127
+ const _render3 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
128
+ rootPageId: "page0"
129
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
130
+ id: "page0",
131
+ renderActionLabel: () => null
132
+ }, _Drilldown$Option4 || (_Drilldown$Option4 = /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
133
+ id: "option1"
134
+ }, "Option"))))),
135
+ container = _render3.container;
136
+ const listItem = container.querySelector('li');
137
+ const title = container.querySelector('[id^="DrilldownHeader-Title-Label_"]');
138
+ expect(listItem).toBeInTheDocument();
139
+ expect(title).not.toBeInTheDocument();
140
+ });
141
+ it('should fire header action callback', async () => {
142
+ const actionCallback = _vitest.vi.fn();
143
+ (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
144
+ rootPageId: "page0"
145
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
146
+ id: "page0",
147
+ renderActionLabel: "ActionWithCallback",
148
+ onHeaderActionClicked: actionCallback
149
+ }, _Drilldown$Option5 || (_Drilldown$Option5 = /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
150
+ id: "option1"
151
+ }, "Option")))));
152
+ const actionLabel = _react2.screen.getByText('ActionWithCallback');
153
+ await _userEvent.default.click(actionLabel);
154
+ await (0, _react2.waitFor)(() => {
155
+ expect(actionCallback).toHaveBeenCalled();
156
+ });
157
+ });
158
+ });
159
+ describe('header back navigation', () => {
160
+ it('should not be displayed on root page', async () => {
161
+ (0, _react2.render)(_Drilldown4 || (_Drilldown4 = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
162
+ rootPageId: "page0"
163
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
164
+ id: "page0",
165
+ renderBackButtonLabel: "HeaderBackString"
166
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
167
+ id: "option1"
168
+ }, "Option")))));
169
+ const label = _react2.screen.queryByText('HeaderBackString');
170
+ expect(label).not.toBeInTheDocument();
171
+ });
172
+ it('should be displayed on subpages', async () => {
173
+ (0, _react2.render)(_Drilldown5 || (_Drilldown5 = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
174
+ rootPageId: "page0"
175
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
176
+ id: "page0"
177
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
178
+ id: "option1",
179
+ subPageId: "page2"
180
+ }, "Option")), /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
181
+ id: "page2",
182
+ renderBackButtonLabel: "HeaderBackString"
183
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
184
+ id: "option2"
185
+ }, "Option")))));
186
+ const option = _react2.screen.getByText('Option');
187
+ await _userEvent.default.click(option);
188
+ await (0, _react2.waitFor)(() => {
189
+ const label = _react2.screen.queryByText('HeaderBackString');
190
+ expect(label).toBeInTheDocument();
191
+ });
192
+ });
193
+ it('should be displayed when function is passed, and can use former page title', async () => {
194
+ const pageTitle = 'Page Title';
195
+ (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
196
+ rootPageId: "page0"
197
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
198
+ id: "page0",
199
+ renderTitle: pageTitle
200
+ }, _Drilldown$Option6 || (_Drilldown$Option6 = /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
201
+ id: "option1",
202
+ subPageId: "page2"
203
+ }, "Option"))), /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
204
+ id: "page2",
205
+ renderBackButtonLabel: prevPageTitle => `Back to ${prevPageTitle}`
206
+ }, _Drilldown$Option7 || (_Drilldown$Option7 = /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
207
+ id: "option2"
208
+ }, "Option")))));
209
+ const option = _react2.screen.getByText('Option');
210
+ await _userEvent.default.click(option);
211
+ await (0, _react2.waitFor)(() => {
212
+ const label = _react2.screen.queryByText(`Back to ${pageTitle}`);
213
+ expect(label).toBeInTheDocument();
214
+ });
215
+ });
216
+ });
217
+ describe('header separator', () => {
218
+ it('should not be displayed, if no item is on the header', async () => {
219
+ const _render4 = (0, _react2.render)(_Drilldown6 || (_Drilldown6 = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
220
+ rootPageId: "page0"
221
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
222
+ id: "page0"
223
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
224
+ id: "option1"
225
+ }, "Option"))))),
226
+ container = _render4.container;
227
+ const separator = container.querySelector('[id^="DrilldownHeader-Separator_"]');
228
+ expect(separator).not.toBeInTheDocument();
229
+ });
230
+ it('should be displayed, if there are items in the header', async () => {
231
+ const _render5 = (0, _react2.render)(_Drilldown7 || (_Drilldown7 = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
232
+ rootPageId: "page0"
233
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
234
+ id: "page0",
235
+ renderTitle: "Title"
236
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
237
+ id: "option1"
238
+ }, "Option"))))),
239
+ container = _render5.container;
240
+ const separator = container.querySelector('[id^="DrilldownHeader-Separator_"]');
241
+ expect(separator).toBeInTheDocument();
242
+ });
243
+ it('should not be displayed, if withoutHeaderSeparator is set', async () => {
244
+ const _render6 = (0, _react2.render)(_Drilldown8 || (_Drilldown8 = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
245
+ rootPageId: "page0"
246
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
247
+ id: "page0",
248
+ renderTitle: "Title",
249
+ withoutHeaderSeparator: true
250
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
251
+ id: "option1"
252
+ }, "Option"))))),
253
+ container = _render6.container;
254
+ const separator = container.querySelector('[id^="DrilldownHeader-Separator_"]');
255
+ expect(separator).not.toBeInTheDocument();
256
+ });
257
+ });
258
+ describe('disabled prop', () => {
259
+ it('should make all options disabled', async () => {
260
+ (0, _react2.render)(_Drilldown9 || (_Drilldown9 = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
261
+ rootPageId: "page0"
262
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
263
+ id: "page0",
264
+ renderActionLabel: "Action Label",
265
+ disabled: true
266
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
267
+ id: "option1"
268
+ }, "Option")))));
269
+ const allOptions = _react2.screen.getAllByRole('menuitem');
270
+ allOptions.forEach(option => {
271
+ expect(option).toHaveAttribute('aria-disabled', 'true');
272
+ });
273
+ });
274
+ it("shouldn't make header Back options disabled", async () => {
275
+ (0, _react2.render)(_Drilldown10 || (_Drilldown10 = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
276
+ rootPageId: "page0"
277
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
278
+ id: "page0"
279
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
280
+ id: "option1",
281
+ subPageId: "page2"
282
+ }, "Option1")), /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
283
+ id: "page2",
284
+ disabled: true,
285
+ renderBackButtonLabel: "HeaderBackString"
286
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Option, {
287
+ id: "option2"
288
+ }, "Option2")))));
289
+ const subPageOption = _react2.screen.getByText('Option1');
290
+ await _userEvent.default.click(subPageOption);
291
+ await (0, _react2.waitFor)(() => {
292
+ const option2 = _react2.screen.getByLabelText('Option2');
293
+ const backOption = _react2.screen.getByLabelText('HeaderBackString');
294
+ expect(option2).toHaveAttribute('role', 'menuitem');
295
+ expect(option2).toHaveAttribute('aria-disabled', 'true');
296
+ expect(backOption).toHaveAttribute('role', 'menuitem');
297
+ expect(backOption).not.toHaveAttribute('aria-disabled');
298
+ });
299
+ });
300
+ });
301
+ });
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _react = _interopRequireDefault(require("react"));
5
+ var _react2 = require("@testing-library/react");
6
+ require("@testing-library/jest-dom");
7
+ var _index = require("../../index");
8
+ var _Drilldown, _Drilldown2;
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
+ describe('<Drilldown.Separator />', () => {
33
+ it('should render', async () => {
34
+ (0, _react2.render)(_Drilldown || (_Drilldown = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
35
+ rootPageId: "page0"
36
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
37
+ id: "page0"
38
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Separator, {
39
+ id: "sep1",
40
+ "data-testid": "separator1"
41
+ })))));
42
+ const separator = _react2.screen.getByTestId('separator1');
43
+ expect(separator).toBeVisible();
44
+ expect(separator.getAttribute('class')).toContain('-separator');
45
+ });
46
+ it('should not render children', async () => {
47
+ (0, _react2.render)(_Drilldown2 || (_Drilldown2 = /*#__PURE__*/_react.default.createElement(_index.Drilldown, {
48
+ rootPageId: "page0"
49
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Page, {
50
+ id: "page0"
51
+ }, /*#__PURE__*/_react.default.createElement(_index.Drilldown.Separator, {
52
+ id: "sep1",
53
+ "data-testid": "separator1"
54
+ }, "Children")))));
55
+ const separatorChild = _react2.screen.queryByText('Children');
56
+ expect(separatorChild).not.toBeInTheDocument();
57
+ });
58
+ });