79161600

Date: 2024-11-06 07:03:39
Score: 1
Natty:
Report link

It seems like your error refers to another line of code. Anyway, in order to add a custom message to expect statement you should use:

await expect(page.getByText('Name'), 'should be logged in').toBeVisible();

as you can see in their official documentation here

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: OrnaZ