UNPKG

patternfly

Version:

This reference implementation of PatternFly is based on [Bootstrap v3](http://getbootstrap.com/). Think of PatternFly as a "skinned" version of Bootstrap with additional components and customizations.

37 lines (26 loc) 833 B
describe("about-modal suite", function () { beforeEach(function () { globals.readFixture(globals.fixturePath + 'about-modal.html'); }); it('should launch the about modal', function (done) { var button = $('button[data-toggle="modal"]'); var modal = $('.modal'); //expect modal to be hidden initially expect(modal).toBeHidden(); button.click(); setTimeout(function () { expect(modal).not.toBeHidden(); done(); }, globals.wait); }); it('should close the about modal and the backdrop should disappear', function (done) { var closeButton = $('button.close'); closeButton.click(); setTimeout(function () { expect($('.modal')).toBeHidden(); //manually remove backdrop $('.modal-backdrop').remove(); done(); }, globals.wait); }); });