expect-webdriverio
Advanced tools
Comparing version 4.11.6 to 4.11.7
@@ -9,3 +9,3 @@ import { executeCommandBe } from '../../utils.js'; | ||
}); | ||
const result = await executeCommandBe.call(this, received, el => el.isClickable(), options); | ||
const result = await executeCommandBe.call(this, received, el => el?.isClickable(), options); | ||
await options.afterAssertion?.({ | ||
@@ -12,0 +12,0 @@ matcherName: 'toBeClickable', |
@@ -9,3 +9,3 @@ import { executeCommandBe } from '../../utils.js'; | ||
}); | ||
const result = await executeCommandBe.call(this, received, el => el.isDisplayed(), options); | ||
const result = await executeCommandBe.call(this, received, el => el?.isDisplayed(), options); | ||
await options.afterAssertion?.({ | ||
@@ -12,0 +12,0 @@ matcherName: 'toBeDisplayed', |
@@ -9,3 +9,3 @@ import { executeCommandBe } from '../../utils.js'; | ||
}); | ||
const result = await executeCommandBe.call(this, received, el => el.isDisplayedInViewport(), options); | ||
const result = await executeCommandBe.call(this, received, el => el?.isDisplayedInViewport(), options); | ||
await options.afterAssertion?.({ | ||
@@ -12,0 +12,0 @@ matcherName: 'toBeDisplayedInViewport', |
@@ -9,3 +9,3 @@ import { executeCommandBe } from '../../utils.js'; | ||
}); | ||
const result = await executeCommandBe.call(this, received, el => el.isEnabled(), options); | ||
const result = await executeCommandBe.call(this, received, el => el?.isEnabled(), options); | ||
await options.afterAssertion?.({ | ||
@@ -12,0 +12,0 @@ matcherName: 'toBeEnabled', |
@@ -10,3 +10,3 @@ import { executeCommandBe, aliasFn } from '../../utils.js'; | ||
}); | ||
const result = await executeCommandBe.call(this, received, el => el.isExisting(), options); | ||
const result = await executeCommandBe.call(this, received, el => el?.isExisting(), options); | ||
await options.afterAssertion?.({ | ||
@@ -13,0 +13,0 @@ matcherName: 'toExist', |
@@ -9,3 +9,3 @@ import { executeCommandBe } from '../../utils.js'; | ||
}); | ||
const result = await executeCommandBe.call(this, received, el => el.isFocused(), options); | ||
const result = await executeCommandBe.call(this, received, el => el?.isFocused(), options); | ||
await options.afterAssertion?.({ | ||
@@ -12,0 +12,0 @@ matcherName: 'toBeFocused', |
@@ -9,3 +9,3 @@ import { executeCommandBe } from '../../utils.js'; | ||
}); | ||
const result = await executeCommandBe.call(this, received, el => el.isSelected(), options); | ||
const result = await executeCommandBe.call(this, received, el => el?.isSelected(), options); | ||
await options.afterAssertion?.({ | ||
@@ -12,0 +12,0 @@ matcherName: 'toBeSelected', |
{ | ||
"name": "expect-webdriverio", | ||
"version": "4.11.6", | ||
"version": "4.11.7", | ||
"author": "Mykola Grybyk <mykola.grybyk@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "WebdriverIO Assertion Library", |
101102