We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad65eea commit ca53944Copy full SHA for ca53944
scripts/pit/its/hello.js
@@ -38,7 +38,7 @@ const { log, args, createPage, closePage, takeScreenshot, waitForServerReady, di
38
m = await page.getByRole('alert').nth(1).innerText({timeout: 500});
39
} catch (e) {
40
log(`Not Found ${text} in an 'alert' role`);
41
- m = await page.locator(`text=/${text}/`).innerText({timeout: 5000});
+ m = await page.locator(`text=/${text}/`).first().innerText({timeout: 5000});
42
}
43
if (!new RegExp(text).test(m)) {
44
throw new Error(`${text} text not found in ${m}`);
0 commit comments