Merge branch 'master' into feat/error-report
Project CI / Repository checks (pull_request) Successful in 3m6s
Project CI / Frontend tests (pull_request) Successful in 4m12s
Project CI / Backend tests (pull_request) Successful in 6m40s
Project CI / Native shell tests (pull_request) Failing after 5m5s

This commit is contained in:
2026-09-02 11:42:39 +08:00
2 changed files with 16 additions and 0 deletions
@@ -155,6 +155,11 @@ export function registerPlanGddApprovalTests() {
const dialog = openReviseDialog();
typeComment(dialog, '把核心循环压到三步');
await waitFor(() => {
expect(
within(dialog).getByRole('button', { name: '提交决定' }),
).toHaveProperty('disabled', false);
});
harness.failNextPlanGddDecision('PLAN_DURABILITY_FAILED');
fireEvent.click(screen.getByRole('button', { name: '提交决定' }));
await waitFor(() => {
@@ -163,6 +168,11 @@ export function registerPlanGddApprovalTests() {
// 原样重试:属于方案 §13.2 的 busy/超时/网络重试,必须复用同一 responseId。
harness.failNextPlanGddDecision('PLAN_DURABILITY_FAILED');
await waitFor(() => {
expect(
within(dialog).getByRole('button', { name: '提交决定' }),
).toHaveProperty('disabled', false);
});
fireEvent.click(screen.getByRole('button', { name: '提交决定' }));
await waitFor(() => {
expect(harness.planGddDecisionCalls).toHaveLength(2);
@@ -175,6 +185,11 @@ export function registerPlanGddApprovalTests() {
// 「同 responseId 的审批意图不一致」硬拒,用户改写后的原因永远落不了盘。
typeComment(dialog, '把核心循环压到两步,并去掉天气系统');
harness.failNextPlanGddDecision('PLAN_DURABILITY_FAILED');
await waitFor(() => {
expect(
within(dialog).getByRole('button', { name: '提交决定' }),
).toHaveProperty('disabled', false);
});
fireEvent.click(screen.getByRole('button', { name: '提交决定' }));
await waitFor(() => {
expect(harness.planGddDecisionCalls).toHaveLength(3);
+1
View File
@@ -2425,6 +2425,7 @@ function assertAiGameCreatorShellUserDevBoundary() {
JSON.stringify([
{ url: 'https://dev.genarrative.world/api/*' },
{ url: 'https://www.genarrative.world/api/*' },
{ url: 'https://agc-dev.oss-rg-china-mainland.aliyuncs.com/*' },
{ url: 'https://*/api/*' },
{ url: 'http://localhost:*/*' },
{ url: 'http://127.0.0.1:*/*' },