We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Mhh, seems like a bug within the attrmethod itself. Does it work when you select the element by ID and/or check the type attribute?
attr
type
That information would help.
Sorry, something went wrong.
Hey,
i have a submit button:
<button type="submit" class="btn btn-success" id="loginButton" data-testid="login" disabled="disabled" data-bindattr-11="11" data-ember-action="12">Login</button>
i tried following assertions:
.attr('#loginButton').is('data-testid', 'login', 'BLUB.') --> Same error like above .attr('#loginButton', 'data-testid', 'login') --> success .attr('[data-testid="login"]', 'type', 'submit') --> success .attr('#loginButton').is('disabled', 'disabled', 'BLUB.') --> same error like above .attr('#loginButton', 'class', 'btn btn-success') --> success .attr('[data-testid="login"]', 'type', 'submit') --> success .attr('#loginButton', 'disabled', 'disabled') --> same error .attr('#loginButton', 'type', 'submit') --> Success
hope this helps.
cheers
Thanks, that actually is really helpful. I´m currently in the road not back to the office until next week, but will take care of it then.
Identified the problem.
asciidisco
No branches or pull requests
i have an html element like this:
I want to assert the disabled attribute as it is described in the docs with:
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
The text was updated successfully, but these errors were encountered: