fix(app): chat probe checks the renamed row by its actions label

This commit is contained in:
2026-10-23 01:22:24 +01:00
parent 9a8e685c2c
commit d22fc1d627
+4 -1
View File
@@ -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).