fix(app): chat probe checks the renamed row by its actions label
This commit is contained in:
@@ -267,7 +267,10 @@ try {
|
|||||||
await type('Probe renamed');
|
await type('Probe renamed');
|
||||||
await click('Save', 'the rename Save');
|
await click('Save', 'the rename Save');
|
||||||
await waitText('Probe renamed', 'the renamed row');
|
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);
|
await shot('renamed-list', 390, 844);
|
||||||
|
|
||||||
// Star the renamed row (the first unstarred row in server order).
|
// Star the renamed row (the first unstarred row in server order).
|
||||||
|
|||||||
Reference in New Issue
Block a user