@syntrologie/adapt-nav 2.4.0-canary.21 → 2.4.0-canary.22
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.
|
@@ -72,7 +72,7 @@ describe('AnchorPicker', () => {
|
|
|
72
72
|
it('sets highest z-index on overlay', () => {
|
|
73
73
|
const { unmount } = render(_jsx(AnchorPicker, { isActive: true, onPick: vi.fn(), onCancel: vi.fn() }));
|
|
74
74
|
const picker = document.body.querySelector('[data-syntro-anchor-picker]');
|
|
75
|
-
expect(picker.style.zIndex).toBe('
|
|
75
|
+
expect(picker.style.zIndex).toBe('2147483644');
|
|
76
76
|
unmount();
|
|
77
77
|
});
|
|
78
78
|
it('calls onCancel when Escape key is pressed', () => {
|
|
@@ -402,9 +402,9 @@ describe('EditorPanelShell', () => {
|
|
|
402
402
|
const fab = container.querySelector('[data-syntro-fab]');
|
|
403
403
|
fireEvent.pointerDown(handle, { clientX: 300, clientY: 650, pointerId: 1 });
|
|
404
404
|
fireEvent.pointerMove(handle, { clientX: 300, clientY: 750, pointerId: 1 });
|
|
405
|
-
// FAB top should
|
|
406
|
-
// FAB top = y +
|
|
407
|
-
expect(fab.style.top).toBe('
|
|
405
|
+
// FAB top should stay at top-left of panel during resize
|
|
406
|
+
// FAB top = y + FAB_INSET = 50 + 12 = 62
|
|
407
|
+
expect(fab.style.top).toBe('62px');
|
|
408
408
|
// FAB left = x + FAB_INSET = 100 + 12 = 112
|
|
409
409
|
expect(fab.style.left).toBe('112px');
|
|
410
410
|
fireEvent.pointerUp(handle, { clientX: 300, clientY: 750, pointerId: 1 });
|
package/package.json
CHANGED