How can I verify whether the text content is either one
or two
using Playwright?
await expect(this.header).toHaveText('one').or('two')
Is there a way to achieve this functionality in Playwright?
Additionally, can this feature be incorporated within a sentence like:
await expect(this.header).toHaveText("this is "+('first').or('second')+ "sentence");