backup
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user