forked from phenom/healer-man
17 lines
686 B
TypeScript
17 lines
686 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
const gameplayPanelsSource = readFileSync(
|
|
new URL("./GameplayPanels.tsx", import.meta.url),
|
|
"utf8",
|
|
);
|
|
|
|
describe("gameplay panel loading integration", () => {
|
|
it("starts loading talents from the pause menu and keeps a visible first-open surface", () => {
|
|
expect(gameplayPanelsSource).toContain('overlay === "pause"');
|
|
expect(gameplayPanelsSource).toContain("preloadTalentGameplayPanel()");
|
|
expect(gameplayPanelsSource).toContain("fallback={<TalentsPanelLoading />}");
|
|
expect(gameplayPanelsSource).not.toContain("<Suspense fallback={null}><TalentGameplayPanel />");
|
|
});
|
|
});
|