blob: a890bc277e2e14a67ac9b7560c5739cc75735f46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { Text } from "@mantine/core";
import { describe, it } from "vitest";
import { render, screen } from "@/tests";
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.getAllByRole("button", { name: "Save" })[0]).toBeDisabled();
});
});
|