slint/ui-libraries/material/docs/tests/smoke-test.spec.ts
2025-09-18 15:47:22 +02:00

18 lines
779 B
TypeScript

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import { test, expect } from "@playwright/test";
test("smoke test", async ({ page }) => {
await page.goto("");
await expect(page.locator('[id="_top"]')).toContainText("Welcome to Slint");
await page
.getByLabel("Main")
.getByRole("link", { name: "Reference" })
.click();
await page.getByText("Visual Elements").click();
await page.getByRole("link", { name: "Image" }).click();
await page.getByRole("link", { name: "colorize" }).click();
await expect(page.locator("#colorize")).toContainText("colorize");
await page.getByRole("link", { name: "brush", exact: true }).click();
await expect(page.locator("#brush")).toContainText("brush");
});