79372601

Date: 2025-01-20 20:43:46
Score: 1
Natty:
Report link

I just ran into a similar issue with asserting on a locator. Adding an await before the locator in brackets fixed it for me. I'm guessing it will work for page assertions as well. So for your code example it should look something like this:

await expect(await this.page).toHaveTitle("Sign in");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yanique Dickson