DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
fix(web): stub settings bootstrap in readiness audit
ZQR110137a29cc067f4
diff --git a/web/tests/e2e/settings-navigation.audit.ts b/web/tests/e2e/settings-navigation.audit.tsindex 1cd936597..2b4999fe1 100644--- a/web/tests/e2e/settings-navigation.audit.ts+++ b/web/tests/e2e/settings-navigation.audit.ts@@ -1,9 +1,49 @@import { expect, test } from '@playwright/test'+// The v1.6.5 settings hub mounts the readiness panel only once the settings+// store has loaded an *editable* catalog (`catalogEditable === true`), which+// happens when `/api/settings` answers with a `catalog` body. This audit runs+// against a production web server with no backend, so it stubs the same+// settings bootstrap the sibling ui-audit scenarios stub (cf. the book/video+// audits' `/api/settings` route); without it the panel never mounts and the+// whole scenario is skipped before it has exercised anything.+const MINIMAL_EDITABLE_SETTINGS = {+ ui: {+ theme: 'light',+ language: 'en',+ response_language: 'en',+ code_block_theme: 'github',+ code_block_show_line_numbers: false,+ code_block_wrap_long_lines: false,+ },+ catalog: {+ version: 1,+ connections: [],+ services: {+ llm: { active_profile_id: null, active_model_id: null, profiles: [] },+ task: { active_profile_id: null, active_model_id: null, profiles: [] },+ embedding: { active_profile_id: null, active_model_id: null, profiles: [] },+ search: { active_profile_id: null, profiles: [] },+ tts: { active_profile_id: null, active_model_id: null, profiles: [] },+ stt: { active_profile_id: null, active_model_id: null, profiles: [] },+ imagegen: { active_profile_id: null, active_model_id: null, profiles: [] },+ videogen: { active_profile_id: null, active_model_id: null, profiles: [] },+ },+ },+ providers: {},+ connection_targets: [],+}+test.describe('Settings navigation', () => {test('reports what is ready without dressing optional gaps as faults', async ({page,}) => {+ await page.route('**/api/settings', route =>+ route.fulfill({+ status: 200,+ json: MINIMAL_EDITABLE_SETTINGS,+ })+ )await page.route('**/api/settings/readiness', route =>route.fulfill({status: 200,