Skip to content

Commit d0e93cf

Browse files
committed
fix hello when there are logs in copilot
1 parent 2529a48 commit d0e93cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pit/its/hello.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const { log, args, createPage, closePage, takeScreenshot, waitForServerReady, di
4545
log(`Found ${text} in an 'alert' role: ${m}`);
4646
} catch (e) {
4747
log(`Not Found ${text} in an 'alert' role, looking in DOM`);
48-
m = await page.locator(`text=/${text}/`).innerText({timeout:5000});
48+
m = await page.locator(`text=/${text}/`).first().innerText({timeout:5000});
4949
}
5050

5151
if (! new RegExp(text).test(m)) {

0 commit comments

Comments
 (0)