{ await waitFor(() => expect(shadowText(canvasElement)).toContain("oklch(0.98 0 0)")); }} /> { const card = canvasElement.querySelector("details")!; await expect(card.open).toBe(true); await userEvent.click(card.querySelector("summary")!); await expect(card.open).toBe(false); await userEvent.click(card.querySelector("summary")!); await expect(card.open).toBe(true); await expect(canvas.getByText("src/colors.ts")).toBeInTheDocument(); }} /> { // both names live in the same flex row, match the joined text const header = canvasElement.querySelector("summary")!; await expect(header.textContent).toContain("src/old-name.ts"); await expect(header.textContent).toContain("src/new-name.ts"); }} /> { await expect( canvas.getByText("This is a binary file and will not be displayed.") ).toBeInTheDocument(); }} /> { await expect(canvas.getByRole("link", { name: /view file/i })).toHaveAttribute( "href", "/dawn/tangled/blob/master/src/colors.ts" ); }} />