-
-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
Today, arrayContaining is not working with toHaveText and $$()
When doing the below, it fails
await expect(await $$('label')).toHaveText(expect.arrayContaining(['Username', 'Password']));Expect $$(`label`) to have text
- Expected - 2
+ Received + 0
Array [
- ArrayContaining [
"Username",
"Password",
- ],
]
While explicitly extracting text and doing equal works
const texts = await $$('label').map( async (el) => el.getText())
expect(texts).toEqual(expect.arrayContaining(['Username', 'Password']));Metadata
Metadata
Assignees
Labels
No labels