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.

30 lines (24 loc) 738 B
module.exports = (frame, assert, browserWidth, helper) => { describe('Teaser external', () => { let label; let content; beforeEach(() => { label = frame.getAll('#teaser-external .sc-teaser__label').at(0).toDomElement(); content = frame.getAll('#teaser-external .sc-teaser__content').at(0); }); afterEach(done => { helper.reload(frame, done) }); if(browserWidth < 768) { it('opens on click', () => { content.assert({ rendered: false }); label.click(); content.assert({ rendered: true }) }); } }); };