Support Forum
You made a few errors:
1. You included Ext JS in the preloads, which meant you had multiple copies of Ext JS in your page. If using hostPageUrl option, that page should include all scripts etc, don't combine with the preload option. Cleaned up:
2. Test code was messy. Cleaned up:
1. You included Ext JS in the preloads, which meant you had multiple copies of Ext JS in your page. If using hostPageUrl option, that page should include all scripts etc, don't combine with the preload option. Cleaned up:
var Harness = Siesta.Harness.Browser.ExtJS;
Harness.configure({
title: 'Gooses Test Suite',
overrideSetTimeout: false
});
Harness.start(
{
group: 'Manage Vehicle Rates',
items: [
{
url: 'ManageVehicleRates.t.js',
hostPageUrl: 'ManageVehicleRates.php'
}
]
}
);
//console.trace();
StartTest(function (t) {
t.waitForComponentQuery('textfield[id=HourlyRate]', function() {
t.chain(
{
action: 'type',
target: Ext.getCmp('HourlyRate'),
text: '5'
}, {
action: 'type',
target: Ext.getCmp('MilageRate'),
text: '42'
}, {
action: 'type',
target: Ext.getCmp('MilageMinimum'),
text: '15'
}
)
})
})