Skip to content

Commit 4f953ef

Browse files
committed
fix(tests): remove cursor props
1 parent e87db94 commit 4f953ef

3 files changed

Lines changed: 0 additions & 11 deletions

File tree

packages/web/src/common/calendar-interaction/CalendarInteractionEngine.test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ const createHarness = ({
5151
sourceOverlayMode?: SourceElementOverlayMode;
5252
} = {}) => {
5353
document.body.innerHTML = "";
54-
document.body.style.cursor = "";
55-
document.documentElement.style.cursor = "";
5654

5755
let now = 100;
5856
let nextFrameId = 1;
@@ -93,7 +91,6 @@ const createHarness = ({
9391

9492
return {
9593
clone,
96-
cursor: "grabbing",
9794
rect: {
9895
height: 40,
9996
left: 10,
@@ -183,8 +180,6 @@ const createHarness = ({
183180

184181
afterEach(() => {
185182
document.body.innerHTML = "";
186-
document.body.style.cursor = "";
187-
document.documentElement.style.cursor = "";
188183
});
189184

190185
describe("CalendarInteractionEngine", () => {
@@ -321,7 +316,6 @@ describe("CalendarInteractionEngine", () => {
321316
expect(
322317
document.body.querySelector("[data-calendar-interaction-overlay]"),
323318
).toBeNull();
324-
expect(document.body.style.cursor).toBe("");
325319
expect(engine.getMetrics()).toMatchObject({
326320
active: false,
327321
phase: "commit",
@@ -394,7 +388,6 @@ describe("FloatingInteractionOverlay", () => {
394388

395389
overlay.mount({
396390
clone,
397-
cursor: "grabbing",
398391
rect: {
399392
height: 20,
400393
left: 10,
@@ -419,12 +412,10 @@ describe("FloatingInteractionOverlay", () => {
419412
expect(clone.style.height).toBe("24px");
420413
expect(clone.style.width).toBe("70px");
421414
expect(clone.style.zIndex).toBe(`${ZIndex.MAX}`);
422-
expect(document.body.style.cursor).toBe("grabbing");
423415

424416
overlay.unmount();
425417

426418
expect(clone.parentElement).toBeNull();
427-
expect(document.body.style.cursor).toBe("");
428419
});
429420
});
430421

packages/web/src/common/calendar-interaction/dom/overlay/FloatingInteractionOverlay.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export class FloatingInteractionOverlay {
99
rect,
1010
}: {
1111
clone: HTMLElement;
12-
cursor?: string;
1312
rect: {
1413
height: number;
1514
left: number;

packages/web/src/views/Week/interaction/registry/weekEventRegistry.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ describe("createCalendarInteractionEventOverlayMount", () => {
522522
source.append(child);
523523

524524
const mount = createCalendarInteractionEventOverlayMount({
525-
cursor: "grabbing",
526525
source,
527526
});
528527
const clonedChild = mount.clone.querySelector("button");

0 commit comments

Comments
 (0)