Skip to content

.attr() does not work properly, potential bug #12

Open
@izocan

Description

@izocan

i have an html element like this:

<input id="blub" class="ember-view ember-text-field form-control" placeholder="-" disabled="disabled" type="text" data-testid="foo">

I want to assert the disabled attribute as it is described in the docs with:

.attr('[data-testid="foo"]').is('disabled', 'disabled', 'Textfield blub is disabled.')

but it fails saying:
-->0 EXPECTED: disabled
-->0 FOUND: null
-->0 MESSAGE: disabled

Any ideas?

versions:
Win7
dalek-cli 0.0.4
dalekjs local install: 0.0.8

cheers izocan

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions