wip(app): chat probe reads the split New label (run 174)
This commit is contained in:
@@ -209,9 +209,24 @@ try {
|
|||||||
await load('?unseen=1');
|
await load('?unseen=1');
|
||||||
await resize(390, 844);
|
await resize(390, 844);
|
||||||
await click('Refresh', 'Refresh');
|
await click('Refresh', 'Refresh');
|
||||||
await waitText('/workspace/demo · New', 'the open row New marker');
|
await waitText('Open fixture', 'the open row');
|
||||||
const unseenBody = await visibleText();
|
await waitText('/workspace/demo', 'the open row directory');
|
||||||
if (unseenBody.includes('/workspace/archive · New')) {
|
const unseenRows = await evaluate(`[...document.querySelectorAll('flt-semantics')].map(node => ({
|
||||||
|
text: node.getAttribute('aria-label') || node.innerText || '',
|
||||||
|
rect: (() => { const r = node.getBoundingClientRect(); return {x:r.x, y:r.y, width:r.width, height:r.height}; })(),
|
||||||
|
})).filter(node => node.text && node.rect.width && node.rect.height)`);
|
||||||
|
const openRow = unseenRows.find(node => {
|
||||||
|
const lines = node.text.split('\n');
|
||||||
|
return lines.includes('Open fixture') && lines.includes('/workspace/demo');
|
||||||
|
});
|
||||||
|
const closedRow = unseenRows.find(node => {
|
||||||
|
const lines = node.text.split('\n');
|
||||||
|
return lines.includes('Closed fixture') && lines.includes('/workspace/archive');
|
||||||
|
});
|
||||||
|
if (!openRow || !openRow.text.split('\n').includes('New')) {
|
||||||
|
throw new Error('The open row did not report New');
|
||||||
|
}
|
||||||
|
if (!closedRow || !closedRow.text.split('\n').includes('Closed') || closedRow.text.split('\n').includes('New')) {
|
||||||
throw new Error('The closed row reported New');
|
throw new Error('The closed row reported New');
|
||||||
}
|
}
|
||||||
await shot('new-marker', 390, 844);
|
await shot('new-marker', 390, 844);
|
||||||
|
|||||||
Reference in New Issue
Block a user