Files
zemion 88c2bcd0ff
Verify / verify (push) Canceled after 0s
Release Subtitle Tools 0.2.0
2026-09-02 08:44:49 +02:00

19 lines
642 B
TypeScript

import { render, screen } from "@testing-library/react";
import { describe, expect, it, vi } from "vitest";
import { App } from "../../src/App";
describe("Subtitle Tools", () => {
it("renders the local workbench and standard shell", async () => {
vi.stubGlobal(
"fetch",
vi.fn(async () => new Response("Not found", { status: 404 })),
);
render(<App />);
expect(
await screen.findByRole("heading", { name: "Subtitle Tools" }),
).toBeVisible();
expect(await screen.findByText("No network requests")).toBeVisible();
expect(screen.getByRole("button", { name: "Timing" })).toBeVisible();
});
});