UNPKG

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.

16 lines (14 loc) 570 B
module.exports = (frame, assert, browserWidth, helper) => { describe('Rotating arrow', () => { afterEach(done => { helper.reload(frame, done) }) // we can only check classes it('rotates on click', () => { const trigger = frame.get('#rotating-arrow [data-toggle=arrow]').toDomElement(); assert.isFalse(helper.hasClass(trigger, 'open'), 'should point down'); helper.click(trigger); assert.isTrue(helper.hasClass(trigger, 'open'), 'should point down'); }); }); };