Update packages/e2e-test/src/lib/helpers.ts
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -152,7 +152,7 @@ export async function waitForPageWithText(
|
||||
|
||||
// The page may not be fully loaded and hence we need to retry.
|
||||
let findTextAttempts = 0;
|
||||
const escapedText = text.replace(/(["\\])/g, '\\$1');
|
||||
const escapedText = text.replace(/"|\\/g, '\\$&');
|
||||
for (;;) {
|
||||
try {
|
||||
browser.assert.evaluate(
|
||||
|
||||
Reference in New Issue
Block a user