We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe53af1 commit 4dcc945Copy full SHA for 4dcc945
1 file changed
src/matchers/element/toHaveSize.ts
@@ -11,15 +11,15 @@ import type { RectReturn } from '@wdio/protocols'
11
12
export type Size = Pick<RectReturn, 'width' | 'height'>
13
14
-async function condition(el: WebdriverIO.Element, size: Partial<Size>) {
+async function condition(el: WebdriverIO.Element, size: Size) {
15
const actualSize = await el.getSize()
16
17
return compareObject(actualSize, size)
18
}
19
20
export async function toHaveSize(
21
received: WdioElementMaybePromise,
22
- expectedValue: Partial<Size>,
+ expectedValue: Size,
23
options: ExpectWebdriverIO.CommandOptions = DEFAULT_OPTIONS
24
) {
25
const matcherName = 'toHaveSize'
0 commit comments