diff --git a/lib/assertions/is-disabled.js b/lib/assertions/is-disabled.js index 9459dc7a5..a9ff2c45c 100644 --- a/lib/assertions/is-disabled.js +++ b/lib/assertions/is-disabled.js @@ -1,5 +1,6 @@ export default function isDisabled(message) { let element = this.findTargetElement(); + if (!element) return; let expected = `Element ${this.targetDescription} is disabled`; let actual = `Element ${this.targetDescription} is disabled`;