fix(e2e): follow scoped configure prompts · openclaw/openclaw@10dd9c5
vincentkoc
·
2026-05-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,6 +20,14 @@ const assertLocalWizard = () => {
|
20 | 20 | expectEqual("wizard.lastRunMode", cfg?.wizard?.lastRunMode, "local"); |
21 | 21 | }; |
22 | 22 | |
| 23 | +const assertSectionScopedConfigure = () => { |
| 24 | +expectEqual("wizard.lastRunCommand", cfg?.wizard?.lastRunCommand, "configure"); |
| 25 | +expectEqual("wizard.lastRunMode", cfg?.wizard?.lastRunMode, "local"); |
| 26 | +if (cfg?.gateway?.mode) { |
| 27 | +errors.push(`gateway.mode should stay unset (got ${cfg.gateway.mode})`); |
| 28 | +} |
| 29 | +}; |
| 30 | + |
23 | 31 | switch (scenario) { |
24 | 32 | case "local-basic": { |
25 | 33 | expectEqual("agents.defaults.workspace", cfg?.agents?.defaults?.workspace, expectedWorkspace); |
@@ -59,14 +67,14 @@ switch (scenario) {
|
59 | 67 | `slack tokens should be unset (got bot=${got(cfg?.slack?.botToken)}, app=${got(cfg?.slack?.appToken)})`, |
60 | 68 | ); |
61 | 69 | } |
62 | | -expectEqual("wizard.lastRunCommand", cfg?.wizard?.lastRunCommand, "configure"); |
| 70 | +assertSectionScopedConfigure(); |
63 | 71 | break; |
64 | 72 | case "skills": |
65 | 73 | expectEqual("skills.install.nodeManager", cfg?.skills?.install?.nodeManager, "bun"); |
66 | 74 | if (!Array.isArray(cfg?.skills?.allowBundled) || cfg.skills.allowBundled[0] !== "__none__") { |
67 | 75 | errors.push("skills.allowBundled missing"); |
68 | 76 | } |
69 | | -assertLocalWizard(); |
| 77 | +assertSectionScopedConfigure(); |
70 | 78 | break; |
71 | 79 | default: |
72 | 80 | throw new Error(`unknown onboard assertion scenario: ${scenario}`); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。