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.

33 lines (30 loc) 981 B
module.exports = (frame, assert, browserWidth, helper) => { describe('Popover', () => { afterEach(done => { helper.reload(frame, done); }); it('Close button is rendered', () => { const popoverCloseButton = frame .getAll('.sc-popover .sc-popover__close as24-icon') .at(0); popoverCloseButton.assert({ rendered: true, }); }); it('Check position of close button', () => { const popoverCloseButton = frame .getAll('.sc-popover .sc-popover__close') .at(0); assert.equal( popoverCloseButton.getRawStyle('top'), '16px', 'top should be 16px', ); assert.equal( popoverCloseButton.getRawStyle('right'), '16px', 'right should be 16px', ); }); }); };