import { cleanup, render, screen } from "@testing-library/react"; import { FileDrop } from "@repo/ui"; import { afterEach, describe, expect, it, vi } from "vitest"; afterEach(() => { cleanup(); }); describe("FileDrop presentation accessibility", () => { it("renders feedback and progress status visibly in live regions", () => { render( , ); expect(screen.getByRole("alert").textContent).toContain( "The image bundle could not be imported.", ); expect(screen.getByRole("status").textContent).toContain( "Decoding files", ); expect(screen.getByRole("status").textContent).toContain("50%"); }); });