Javascript – Check if element contains any text
In my test case there is an element that should be checked if it contains any text and it's not empty, and if it's empty fail the test. I've tried to use toHaveText without a string like so: await expect(myLocator).toHaveText();…