Commit 2b9ee84b authored by Colin PUY's avatar Colin PUY Committed by julienmege

tests(autocomplete): add integration test for async autocomplete

Add integration test reproducing [BS-16696](https://bonitasoft.atlassian.net/browse/BS-16696)

Relates to [BS-16696](https://bonitasoft.atlassian.net/browse/BS-16696)
parent 5640620b
......@@ -56,4 +56,23 @@ describe('autocomplete', function () {
expect(p.getText()).toContain('Hokusai');
});
});
const labels = () => {
return $$('.dropdown-menu a')
.map(function (item) {
return item.getText();
});
};
describe('async', () => {
// see https://bonitasoft.atlassian.net/browse/BS-16696
it('should display the right selection', () => {
const input = $('.test-async input');
input.clear().sendKeys('walt');
expect(labels()).toEqual([ 'walter.bates' ]);
input.sendKeys(protractor.Key.BACK_SPACE);
expect(labels()).toEqual([ 'walter.bates', 'thomas.wallis' ]);
});
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment