Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

fix(test): split CacheStatsCard check into cache page test

tombii007b5d7f50a8
diff --git a/tests/integration/integration-wiring.test.mjs b/tests/integration/integration-wiring.test.mjs
index ed9e3011d9..b20969c9d4 100644
--- a/tests/integration/integration-wiring.test.mjs
+++ b/tests/integration/integration-wiring.test.mjs
@@ -270,9 +270,17 @@ describe("Page Integration — usage page wiring", () => {
describe("Page Integration — settings page wiring", () => {
const src = readProjectFile("src/app/(dashboard)/dashboard/settings/page.tsx");
- it("should include resilience and cache cards in tabs", () => {
+ it("should include resilience tab in advanced settings", () => {
assert.ok(src, "src/app/(dashboard)/dashboard/settings/page.tsx should exist");
assert.match(src, /ResilienceTab/);
+ });
+});
+
+describe("Page Integration — cache page wiring", () => {
+ const src = readProjectFile("src/app/(dashboard)/dashboard/cache/page.tsx");
+
+ it("should include cache stats card for prompt cache metrics", () => {
+ assert.ok(src, "src/app/(dashboard)/dashboard/cache/page.tsx should exist");
assert.match(src, /CacheStatsCard/);
});
});