16 lines
492 B
TypeScript
16 lines
492 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
// The Examples menu is dynamic: one button per index.json entry, each
|
|
// loading /samples/<id>.py. Every synced sample must appear.
|
|
test("examples menu lists every synced sample", async ({ page }) => {
|
|
await page.goto("/");
|
|
|
|
await page.click("#menu-examples-trigger");
|
|
|
|
const buttons = page.locator("#menu-examples-dropdown button");
|
|
await expect(buttons).toHaveText([
|
|
"building.py",
|
|
"grid.py",
|
|
"cylinders.py",
|
|
]);
|
|
});
|