UNPKG

siesta-lite

Version:

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

40 lines (39 loc) 1.25 kB
StartTest(function(t) { t.getHarness([ { group : 'foo', items : [ 'testfiles/601_siesta_ui_passing.t.js', 'testfiles/601_siesta_ui_passing.t.js?foo', 'testfiles/601_siesta_ui_passing.t.js?foo2', 'testfiles/601_siesta_ui_passing.t.js?foo3' ] } ]); t.chain( { desc : 'Should find testgrid CQ', waitFor : 'compositeQuery', args : ['testgrid => .x-grid-row'] }, { action : 'doubleclick', target : 'testgrid => .x-grid-row' }, { desc : 'Should be able to run group of tests', waitFor : 'harnessEvent', args : 'testsuiteend' }, { waitFor : 500 }, { action : 'doubleclick', target : 'testgrid => .x-grid-row' }, { desc : 'Should be able to run group of tests twice', waitFor : 'harnessEvent', args : 'testsuiteend' } ); });