UNPKG

siesta-lite

Version:

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

16 lines (14 loc) 518 B
StartTest(function (t) { // touch microloader creates some iframe, which will be stored under "0" t.expectGlobal('TestApp', '0', '$jscomp', 'Symbol', 'Reflect', /_\w{32}/) t.chain( { waitFor : 'ComponentQueryVisible', args : 'main' }, { tap : '.x-tab-icon:nth-child(2)' }, { waitFor : function (next) { return t.cq1('main').getActiveItem() == t.cq1('main').getInnerItems()[ 1 ] }, desc : 'Tab has switched' } ) })