@maptiler/sdk
Version:
The Javascript & TypeScript map SDK tailored for MapTiler Cloud
15 lines (10 loc) • 409 B
text/typescript
import { expect, test } from "@playwright/test";
import loadFixtureAndGetMapHandle from "./helpers/loadFixtureAndGetMapHandle";
test("Awaits until map ready and takes snapshot", async ({ page }, testInfo) => {
await loadFixtureAndGetMapHandle({
fixture: "mapLoad",
page,
});
expect(await page.title()).toBe("MapTiler E2E Map Load");
await expect(page).toHaveScreenshot("mapLoad.png");
});