17 lines
723 B
TypeScript
17 lines
723 B
TypeScript
import { createElement } from "react";
|
|
import { renderToStaticMarkup } from "react-dom/server";
|
|
import { describe, expect, it } from "vitest";
|
|
import { BalanceTuningScreen } from "./BalanceTuningScreen";
|
|
|
|
describe("Ability and Talent Tuning screen", () => {
|
|
it("renders the searchable local GM catalogs and apply controls", () => {
|
|
const html = renderToStaticMarkup(createElement(BalanceTuningScreen, { onClose: () => undefined }));
|
|
expect(html).toContain("Ability & Talent Tuning");
|
|
expect(html).toContain("Runtime overrides");
|
|
expect(html).toContain("Abilities");
|
|
expect(html).toContain("Talents");
|
|
expect(html).toContain("Apply locally");
|
|
expect(html).toContain("Reset all");
|
|
});
|
|
});
|