You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/frontend/src/pages/Settings/components/Layout.test.tsx

25 lines
610 B

import { render, screen } from "@/tests";
import { Text } from "@mantine/core";
import { describe, it } from "vitest";
import Layout from "./Layout";
describe("Settings layout", () => {
it.concurrent("should be able to render without issues", () => {
render(
<Layout name="Test Settings">
<Text>Value</Text>
</Layout>
);
});
it.concurrent("save button should be disabled by default", () => {
render(
<Layout name="Test Settings">
<Text>Value</Text>
</Layout>
);
expect(screen.getByRole("button", { name: "Save" })).toBeDisabled();
});
});