Skip to content

Commit 514aaa5

Browse files
committed
Enrich toHaveText with more test cases
1 parent 74084e3 commit 514aaa5

3 files changed

Lines changed: 158 additions & 185 deletions

File tree

src/matchers/element/toHaveText.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function condition(el: WebdriverIO.Element | WebdriverIO.ElementArray, tex
3838
}
3939

4040
export async function toHaveText(
41-
received: ChainablePromiseElement | ChainablePromiseArray | WebdriverIO.Element,
41+
received: ChainablePromiseElement | ChainablePromiseArray | WebdriverIO.Element | WebdriverIO.ElementArray,
4242
expectedValue: string | RegExp | WdioAsymmetricMatcher<string> | Array<string | RegExp>,
4343
options: ExpectWebdriverIO.StringOptions = DEFAULT_OPTIONS
4444
) {

0 commit comments

Comments
 (0)