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
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
test(e2e): wrap memory-settings assertions in toPass with reloading to mitigate Next.js hydration timeouts in CI
diegosouzapwab7908e01223
diff --git a/tests/e2e/memory-settings.spec.ts b/tests/e2e/memory-settings.spec.tsindex 55fd96a3e2..352fbe7460 100644--- a/tests/e2e/memory-settings.spec.ts+++ b/tests/e2e/memory-settings.spec.ts@@ -162,7 +162,13 @@ test.describe("Memory settings", () => {await gotoOrSkip(page, "/dashboard/settings?tab=ai");- await expect(page.getByTestId("memory-settings-card")).toBeVisible();+ let settingsHydrationRetries = 0;+ await expect(async () => {+ if (settingsHydrationRetries++ > 0) {+ await page.reload({ waitUntil: "commit" }).catch(() => {});+ }+ await expect(page.getByTestId("memory-settings-card")).toBeVisible({ timeout: 5000 });+ }).toPass({ timeout: 45_000, intervals: [1000, 2500, 5000] });await expect(page.getByTestId("memory-enabled-switch")).toHaveAttribute("aria-checked","false"@@ -188,7 +194,13 @@ test.describe("Memory settings", () => {await gotoOrSkip(page, "/dashboard/memory");- await expect(page.getByText("preferred_language")).toBeVisible();+ let memoryHydrationRetries = 0;+ await expect(async () => {+ if (memoryHydrationRetries++ > 0) {+ await page.reload({ waitUntil: "commit" }).catch(() => {});+ }+ await expect(page.getByText("preferred_language")).toBeVisible({ timeout: 5000 });+ }).toPass({ timeout: 45_000, intervals: [1000, 2500, 5000] });await page.getByRole("button", { name: /delete/i }).click();await expect.poll(() => state.deleteCalls).toBe(1);