Preload config not loading
Posted: Fri Jul 06, 2018 2:09 am
The preload option is not loading the specified JS file before launching each test. I don't even seen the file requested in network traffic. Here is the harness config:
Any ideas? Does preload work when using "startFromUrl"?
Siesta 4.2.2 and 4.4.4.
var harness = new Siesta.Harness.Browser.ExtJS();
harness.configure({
autoCheckGlobals: true,
coverageUnit: 'file',
defaultTimeout: 30000,
enableCodeCoverage: false,
expectedGlobals: [
'Ext'
],
forceDOMVisible: true,
needDone: true,
pauseBetweenTests: 500,
preload: [
'/includes/portal/tests/bootstrap.t.js'
],
showTestDurationColumn: true,
speedRun: true,
testClass: Portal.TestClass,
title: 'Portal Test Suite',
transparentEx: false,
viewDOM: true,
waitForTimeout: 30000
});
harness.startFromUrl('/tests/unit/discover');
Siesta 4.2.2 and 4.4.4.