mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-17 13:58:05 +00:00
18 lines
779 B
TypeScript
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");
|
|
});
|