Sha256: 31ea425467a86335a2bfd6aafb91df6160de050f1f500d51f577cd7a57d8d074
Contents?: true
Size: 859 Bytes
Versions: 2
Compression:
Stored size: 859 Bytes
Contents
describe('KidsButton', () => { let button; fixture.set(` <div class="mu-kindergarten"> <button class="mu-kids-button">Click me<button> <div class="mu-kids-overlay" style="display: none"></div> </div> `); beforeEach(() => { mumuki.kids = new mumuki.Kids(); button = new mumuki.submission.KidsSubmitButton($('.mu-kids-button')); }) it('can create button', () => { expect(button).not.toBe(null); }) it('overlay is hidden by default', () => { expect(mumuki.kids.$overlay.css('display')).toBe('none'); }) it('call showOverlay on wait', () => { button.wait(); expect(mumuki.kids.$overlay.css('display')).toBe('block'); }) it('call hideOverlay on continue', () => { button.wait(); button.continue(); expect(mumuki.kids.$overlay.css('display')).toBe('none'); }) })
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mumuki-laboratory-8.4.0 | spec/javascripts/kids-button-spec.js |
mumuki-laboratory-8.3.0 | spec/javascripts/kids-button-spec.js |