UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

23 lines (17 loc) 855 B
StartTest({ defaultTimeout : 90000 }, function (t) { // fails in BrowserStack in Win 10 + IE11, probably because the test page is throttled because of the opened popup // just ignoring if (t.bowser.msie && t.bowser.version == 11) return var popup = window.open("6.misc/popup-content.html", '_blank', "left=10,top=10,width=500,height=500") // in our experience, IE sometimes fails to open a popup. This happens sporadically even if popups are enabled // in the browser, need to take into account such possibility, in which we just skip the rest of the test if (!popup) return t.switchTo({ url : /popup/ }, function () { t.chain( { action : 'click', target : 'input[value="Click me"]' }, { waitFor : 'selectorNotFound', args : 'input[value="Click me"]' } ); }) });