fix(ci): 校正守卫后的五条前端源码合同跟着搬家(BUG-940)
This commit is contained in:
@@ -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\(\)\);/);
|
||||
|
||||
Reference in New Issue
Block a user