Skip to content
This repository has been archived by the owner on Dec 30, 2018. It is now read-only.

Testing? #10

Open
uqcgreen opened this issue Feb 12, 2014 · 0 comments
Open

Testing? #10

uqcgreen opened this issue Feb 12, 2014 · 0 comments

Comments

@uqcgreen
Copy link

Would be great if you could give an example of how to test this. Currently using Jasmine and have this, but the sleeps slow down our tests.

it('should update the thing on select', function () {
var newText = 'Option Text';
input('authorInput').enter('option text');
sleep(1);
element('ul.ui-autocomplete li:nth-child(1) a').click();
sleep(1);
expect(element('#thing .value').text()).toBe(newText);
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant