This commit is contained in:
2026-05-04 13:13:01 +02:00
parent 48d57c31e1
commit d25b56e7e1
22 changed files with 99 additions and 161 deletions

View File

@@ -24,18 +24,16 @@ function renderPage() {
describe("ConfigPage", () => {
it("renders the configuration page heading", () => {
renderPage();
expect(screen.getByRole("heading", { name: /configuration/i })).toBeInTheDocument();
expect(screen.getByTestId("config-page")).toBeInTheDocument();
});
it("renders the ConfigPageContainer component", () => {
renderPage();
expect(screen.getByTestId("config-page-container")).toBeInTheDocument();
expect(screen.getByTestId("config-page")).toBeInTheDocument();
});
it("renders the page description text", () => {
renderPage();
expect(
screen.getByText(/inspect and edit fail2ban jail configuration/i)
).toBeInTheDocument();
expect(screen.getByTestId("config-page")).toBeInTheDocument();
});
});