showcar-ui
Version:
Showcar-ui is the pattern library that is used to build the frontend of AutoScout24. It provides CSS classes, custom elements and components.
18 lines (16 loc) • 746 B
JavaScript
module.exports = (frame, assert, browserWidth, helper) => {
describe('Custom dropdown with icons {INTERACTION}', () => {
afterEach(done => {
helper.reload(frame, done)
});
it('dropdown with icons have only one choice', () => {
const trigger = frame.get('#custom-dropdown-icons p').toDomElement();
helper.click(trigger);
const labelCabrio = frame.get('#custom-dropdown-icons [for=cabrio]').toDomElement();
const labelCoupe = frame.get('#custom-dropdown-icons [for=coupe]').toDomElement();
helper.click(labelCabrio);
helper.click(labelCoupe);
assert.include(trigger.innerText, 'Coupé', 'contains');
});
});
};