fix(frontend): unblock staging gate by aligning two stale contract tests (BUG-622)
is-changed now has a CSS rule, so it cannot stay on knownUnstyled. The question-gap contract still expected verified_idle && ( after BUG-620 added verifiedIdleCopy and !showSelectionCards. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -79,7 +79,10 @@ test("the question gap is a live row with retries, then a reload; it never tells
|
||||
assert.match(chat, /const questionGap = rectificationQuestionGapState\(\{/);
|
||||
assert.match(chat, /questionGap === "preparing" && \(/);
|
||||
assert.match(chat, /questionGap === "unavailable" && \(/);
|
||||
assert.match(chat, /questionGap === "verified_idle" && \(/);
|
||||
// 原值:questionGap === "verified_idle" && (
|
||||
// 新值:questionGap === "verified_idle" && verifiedIdleCopy && !showSelectionCards && (
|
||||
// 原因:BUG-620 把收尾句挪到对照卡下,无 copy 或卡仍在时不单独贴一段;门禁仍锁旧字面量会红(BUG-622)
|
||||
assert.match(chat, /questionGap === "verified_idle" && verifiedIdleCopy && !showSelectionCards && \(/);
|
||||
assert.match(chat, /RECTIFICATION_QUESTION_UNAVAILABLE_COPY/);
|
||||
assert.match(chat, /RECTIFICATION_QUESTION_RELOAD_LABEL/);
|
||||
assert.match(chat, /useVisibilityAwarePoll\(\{\s*enabled: questionGap === "preparing",\s*intervalMs: RECTIFICATION_QUESTION_RETRY_INTERVAL_MS,/);
|
||||
|
||||
Reference in New Issue
Block a user