message: chore: this time, I promise. I fixed it. Sorted out all the scoping stuff for the hacky stuff that evaluate does with .toString
diff: @@ -142,10 +142,12 @@ export async function waitForPageWithText(
  waitUntil: 'networkidle0',
  });
  - const match = await page.evaluate(() =>
  + const match = await page.evaluate(
  + textContent =>
  Array.from(document.querySelectorAll('*')).some(
  - el => el.textContent === text,
  + el => el.textContent === textContent,
  ),
  + text,
  );
  if (!match) {
  @@ -154,6 +156,7 @@ export async function waitForPageWithText(
  break;
  } catch (error) {
  + console.log(error);
  assertError(error);
  findAttempts++;
  