Skip to content

Commit 1de8fe0

Browse files
committed
test: align help recovery cases with samples
1 parent 070be35 commit 1de8fe0

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎packages/daemon/src/server/__tests__/response-views.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ test('find get-text digest keeps ref + text, drops the verbose node', () => {
264264
expect('node' in digest).toBe(false);
265265
});
266266

267-
test('a text read keeps every OTHER cheap field (e.g. warning) while dropping the node', () => {
267+
test('selector text digest preserves a recovery warning while dropping the verbose node', () => {
268268
const digest = findView!(
269269
{
270270
ref: '@e7',

‎scripts/help-conformance-cases.mjs‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -560,19 +560,18 @@ Use the output already shown to determine whether the feed-search UI is present,
560560
recovery: { code: 'DEVICE_IN_USE', sample: DEVICE_IN_USE_SAMPLE },
561561
task: quiz(
562562
DEVICE_IN_USE_SAMPLE,
563-
'You are continuing the checkout flow that the "checkout" session was already running on this device. What command should run next?',
563+
'The default web session cannot open https://example.test because the "checkout" session already owns the device. Without closing that session, what command can reuse it or wait for the device to free up?',
564564
),
565565
expectations: ['validPlanCommands', 'fullPrefix'],
566566
matchers: [
567567
{
568-
id: 'retriesWithOwningSession',
569-
pattern: /(?:^|\n)agent-device\s+press\b[^\n]*--session\s+checkout\b/i,
568+
id: 'opensWebWithOwningSessionOrWaits',
569+
pattern:
570+
/(?:^|\n)agent-device\s+open\s+https:\/\/example\.test\b(?=[^\n]*--platform\s+web\b)(?=[^\n]*(?:--session\s+checkout\b|--wait\s+\d+\b))[^\n]*/i,
570571
},
571-
{ id: 'keepsSettle', pattern: /--settle\b/i },
572572
],
573573
forbidden: [
574574
{ id: 'noClose', pattern: /(?:^|\n)agent-device\s+close\b/i },
575-
{ id: 'noReopen', pattern: /(?:^|\n)agent-device\s+open\b/i },
576575
{ id: 'noRawCoordinateTarget', pattern: RAW_COORDINATE_TARGET },
577576
],
578577
},
@@ -604,7 +603,7 @@ Use the output already shown to determine whether the feed-search UI is present,
604603
recovery: { code: 'COMMAND_FAILED', sample: STALE_REF_SAMPLE },
605604
task: quiz(
606605
STALE_REF_SAMPLE,
607-
'The Continue control this ref pointed at may have moved. What command should run next?',
606+
'The Place order control this ref pointed at may have moved. What command should run next?',
608607
),
609608
expectations: ['validPlanCommands', 'fullPrefix'],
610609
matchers: [

0 commit comments

Comments
 (0)