fix(ci): 校正守卫后的五条前端源码合同跟着搬家(BUG-940)

This commit is contained in:
jesse-ux
2026-09-18 10:39:23 +08:00
parent c0dd1773f7
commit 0378d9e030
7 changed files with 57 additions and 12 deletions
+4 -1
View File
@@ -50,9 +50,12 @@ test("generating does not disable the textarea; Enter queues instead of dropping
assert.match(composer, /COMPOSER_QUEUE_RECALL_LABEL/);
assert.doesNotMatch(styles, /composer-queue[\s\S]{0,400}spinner|composer-queue[\s\S]{0,400}skeleton/i);
// 原值:`inputDisabled={sessionMessagesLoading || rectificationSurfaceOpen || (!profileComplete && ...)}`
// 新值:中间多了 `activeRectificationSession`
// 原因:BUG-924/935 校正会话占位时普通输入框必须禁用,生成中仍不得 disabled textarea。
assert.match(
page,
/inputDisabled=\{sessionMessagesLoading \|\| rectificationSurfaceOpen \|\| \(!profileComplete && \(onboardingStep !== "name" \|\| !presetMessageFinished \|\| profileSaving\)\)\}/,
/inputDisabled=\{sessionMessagesLoading \|\| rectificationSurfaceOpen \|\| activeRectificationSession \|\| \(!profileComplete && \(onboardingStep !== "name" \|\| !presetMessageFinished \|\| profileSaving\)\)\}/,
);
assert.doesNotMatch(page, /inputDisabled=\{isLoading \|\| sessionMessagesLoading \|\| cancellationPending/);
assert.match(page, /if \(isLoading \|\| cancellationPending\) return void enqueueQueuedDraft\(composerDraftSnapshot\(\)\);/);