import { mockBoundingClientRect, render, restoreOriginalGetBoundingClientRect, waitFor, } from "./test-utils"; import Excalidraw from "../packages/excalidraw/index"; import { API } from "./helpers/api"; const { h } = window; describe("appState", () => { it("scroll-to-content on init works with non-zero offsets", async () => { const WIDTH = 200; const HEIGHT = 100; const OFFSET_LEFT = 20; const OFFSET_TOP = 10; const ELEM_WIDTH = 100; const ELEM_HEIGHT = 60; mockBoundingClientRect(); await render(