mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 00:40:13 +08:00
Ship folder-based workspaces and data migration, daily practice, redesigned provider and model settings, and streaming conversation improvements. Synchronize README translations and document the archive/permanent-delete upgrade behavior in assets/releases/ver1-6-9.md. Reduce initial JavaScript by deduplicating English resources and loading animation features after hydration. Keep the existing route size budgets. Update regression fixtures and browser audits for scoped URLs and the new settings and learning interfaces.
19 lines
668 B
TypeScript
19 lines
668 B
TypeScript
import assert from "node:assert/strict";
|
|
import { readFileSync } from "node:fs";
|
|
import path from "node:path";
|
|
import test from "node:test";
|
|
|
|
const read = (relative: string) =>
|
|
readFileSync(path.resolve(process.cwd(), relative), "utf8");
|
|
|
|
test("provider edits stay in the shared draft until explicitly applied", () => {
|
|
const editor = read("components/settings/ServiceConfigEditor.tsx");
|
|
assert.doesNotMatch(
|
|
editor,
|
|
/finishProviderEditing|<Modal|await applyService/,
|
|
);
|
|
assert.match(editor, /aria-label=\{t\("Provider configuration"\)\}/);
|
|
assert.match(editor, /getActiveProfile\(catalog, service\)/);
|
|
assert.match(editor, /mutateCatalog/);
|
|
});
|