diff --git a/app/tool/chat_sessions_probe.mjs b/app/tool/chat_sessions_probe.mjs index f8db25bd..6d23dd69 100644 --- a/app/tool/chat_sessions_probe.mjs +++ b/app/tool/chat_sessions_probe.mjs @@ -267,7 +267,10 @@ try { await type('Probe renamed'); await click('Save', 'the rename Save'); await waitText('Probe renamed', 'the renamed row'); - if ((await visibleText()).includes('Probe created') || (await visibleText()).includes('New chat')) throw new Error('The old title survived the accepted rename'); + // The list's own `New chat` action stays on screen, so the old title is + // checked on the row's actions label, which names the row's title. + if ((await semantics()).includes('Chat actions for New chat')) throw new Error('The old title survived the accepted rename'); + if (!(await semantics()).includes('Chat actions for Probe renamed')) throw new Error('The renamed row has no actions under its new title'); await shot('renamed-list', 390, 844); // Star the renamed row (the first unstarred row in server order).