@tpzdsp/next-toolkit 1.2.2 → 1.2.3
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.
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ const hiddenPositionClasses = {
|
|
|
18
18
|
describe('SlidingPanel', () => {
|
|
19
19
|
it.each(positions)('should render closed panel by default at %s', (position) => {
|
|
20
20
|
render(
|
|
21
|
-
<SlidingPanel position={position} tabLabel="
|
|
21
|
+
<SlidingPanel position={position} tabLabel="Test">
|
|
22
22
|
<p>Panel Content</p>
|
|
23
23
|
</SlidingPanel>,
|
|
24
24
|
);
|
|
@@ -38,7 +38,7 @@ describe('SlidingPanel', () => {
|
|
|
38
38
|
const user = userEvent.setup();
|
|
39
39
|
|
|
40
40
|
render(
|
|
41
|
-
<SlidingPanel position={position} tabLabel="
|
|
41
|
+
<SlidingPanel position={position} tabLabel="Me">
|
|
42
42
|
<div>My content</div>
|
|
43
43
|
</SlidingPanel>,
|
|
44
44
|
);
|
|
@@ -72,7 +72,7 @@ describe('SlidingPanel', () => {
|
|
|
72
72
|
|
|
73
73
|
expect(panelContent).toBeVisible();
|
|
74
74
|
|
|
75
|
-
await user.click(screen.getByRole('button', { name: 'Close' }));
|
|
75
|
+
await user.click(screen.getByRole('button', { name: 'Close Trigger' }));
|
|
76
76
|
|
|
77
77
|
await waitFor(() => {
|
|
78
78
|
expect(panelContent).toBeInTheDocument();
|