Skip to content

Comments

fix: handle array return values in multiremote for toHaveText and toH…#1984

Closed
mccmrunal wants to merge 1 commit intowebdriverio:mainfrom
mccmrunal:fix/multiremote-expect
Closed

fix: handle array return values in multiremote for toHaveText and toH…#1984
mccmrunal wants to merge 1 commit intowebdriverio:mainfrom
mccmrunal:fix/multiremote-expect

Conversation

@mccmrunal
Copy link
Contributor

toHaveText
to detect if getText() returns an array. If so, it iterates over the results and verifies that all instances match the expectation.

toHaveTitle
to handle array returns from browser.getTitle() similarly.

Added support for mixed expectations using array syntax.

tested it against the repo given in the issue #1966

and this should fix #106 too

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 30, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: mccmrunal / name: MRUNAL CHAUDHARI (96b86f3)

@mccmrunal mccmrunal force-pushed the fix/multiremote-expect branch from ae0df6b to 96b86f3 Compare December 30, 2025 16:13
@dprevost-LMI
Copy link
Contributor

👋 We might consider also this PR since some design was stated there

@mccmrunal mccmrunal closed this Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Multiremote

2 participants