PEP-94: web test expects «Автомат» for a new project

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Асель 2026-11-15 14:04:28 +05:00
parent 664054c217
commit 7dc6b0ce64

View File

@ -204,10 +204,10 @@ describe("PEP-77: прогресс по всем проектам", () => {
});
describe("новый проект: настройки по умолчанию", () => {
test("подписка владельца подключается сама; стори берутся сами; продакт и аналитик включены", async () => {
test("подписка владельца подключается сама; стори берутся и мержатся сами (PEP-94); продакт и аналитик включены", async () => {
const first = await provision({ slug: "mock-defaults-a", key: "MDFA" });
assert.equal(await core.projectPool(db, first.id), null, "no own subscription yet");
assert.equal(core.autonomyLevel(await core.getAutonomy(db, first.id)), "self");
assert.equal(core.autonomyLevel(await core.getAutonomy(db, first.id)), "auto", "PEP-94: «Автомат»");
assert.equal((await core.getIntakeSettings(db, first.id)).enabled, true);
const sub = await core.createSubscription(db, { provider: "claude", name: "mock-defaults Claude", authKind: "oauth", secret: "sk-ant-oat01-" + "d".repeat(40), createdBy: alice.id });