Add full shell, replaceable Omics adapter and bilingual interaction
Implement approved specification #32 and tickets #33-#37. Keep host authentication server-verified and pin session interaction language. Compile scoped base selectors for browser compatibility and retain full gutters during CSS pruning.
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import { act, render, screen } from "@testing-library/react";
|
||||
import { PreviewGrid } from "./PreviewGrid";
|
||||
import { setLocale } from "../i18n";
|
||||
|
||||
afterEach(() => setLocale("en"));
|
||||
|
||||
test("the grid's built-in empty state follows a language change", async () => {
|
||||
render(<PreviewGrid columns={["patient_id"]} rows={[]} />);
|
||||
expect(await screen.findByText("No Rows To Show")).toBeInTheDocument();
|
||||
act(() => setLocale("it"));
|
||||
expect(await screen.findByText("Nessuna riga da mostrare")).toBeInTheDocument();
|
||||
expect(screen.getByText("patient_id")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("renders grid cells for the given columns and rows", () => {
|
||||
render(
|
||||
|
||||
Reference in New Issue
Block a user