Skip to content

Commit ca53944

Browse files
committed
look for first in hello.js
1 parent ad65eea commit ca53944

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
@@ -38,7 +38,7 @@ const { log, args, createPage, closePage, takeScreenshot, waitForServerReady, di
3838
m = await page.getByRole('alert').nth(1).innerText({timeout: 500});
3939
} catch (e) {
4040
log(`Not Found ${text} in an 'alert' role`);
41-
m = await page.locator(`text=/${text}/`).innerText({timeout: 5000});
41+
m = await page.locator(`text=/${text}/`).first().innerText({timeout: 5000});
4242
}
4343
if (!new RegExp(text).test(m)) {
4444
throw new Error(`${text} text not found in ${m}`);

0 commit comments

Comments
 (0)