• selector - optional selector to scope the assertion to a nested element

The disabled() assertion mirrors the corresponding interactor property and asserts that an element is disabled. If the corresponding property has been redefined, a new assertion is defined which does not accept a selector.

// with a scoped selector
await new Interactor('.signup-form')

// without a scoped selector
await new Interactor('.signup-form .submit')

// when the corresponding property is overridden
@interactor class FieldInteractor {
  disabled = matches('.is-disabled')

// the scoped selector argument is no longer available
await new FieldInteractor('.email-field')