gradio/js/spa/test/blocks_flashcards.spec.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
531 B
TypeScript
Raw Permalink Normal View History

import { test, expect } from "@self/tootils";
test("shows the results tab when results > 0", async ({ page }) => {
await page.getByRole("button", { name: "Start Practice" }).click();
await expect(
page.getByText("Please enter word prompts into the table.")
).toBeAttached();
await page.getByLabel("Close").click();
await page.getByRole("button", { name: "+" }).click();
await page.getByText("Start Practice").click();
await expect(
page.getByText("Please enter word prompts into the table.")
).not.toBeAttached();
});