Skip to content

Commit fa38c41

Browse files
jackfranklinDevtools-frontend LUCI CQ
authored and
Devtools-frontend LUCI CQ
committed
AI: fix autofreestyler query for Insight text
Bug: none Change-Id: I3773cfc3560cd69052a1cdef32cb6ac9f02a4238 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6440438 Reviewed-by: Ergün Erdoğmuş <ergunsh@chromium.org> Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
1 parent d0fdde9 commit fa38c41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/ai_assistance/auto-run.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ class Example {
467467

468468
this.log(`[Info]: expanding Insight ${insight}`);
469469
// Now find the header for the right insight, and click to expand it. We JSON.parse to remove the surrounding double quotes.
470-
await devtoolsPage.locator(`aria/View details for ${JSON.parse(insight)}`).setTimeout(5000).click();
470+
const locator = `aria/View details for ${JSON.parse(insight)} insight.`;
471+
await devtoolsPage.locator(locator).setTimeout(5000).click();
471472
}
472473

473474
this.log('[Info]: Locating AI assistance tab');

0 commit comments

Comments
 (0)