This chunk of code works just fine
t.click('#addOrgBtn', function(){
t.waitForComponentQuery('textfield[itemId=newOrgName]', function(orgName){
t.chain({
action : 'type',
text : 'testing',
target : orgName[0].inputEl
});
});
});
t.chain({
action : 'click',
target : '#addOrgBtn'
},{
waitFor : 'waitForComponentQuery',
args : ['textfield[itemId=newOrgName]']
}, function (next) {
t.type(Ext.ComponentQuery.query('textfield[itemId=newOrgName', 'testing'));
});
Error
Uncaught Need to pass `action` property for step config | siesta-all.js:8264
Class.my.methods.create | siesta-all.js:8264
override | siesta-all.js:810
c.(anonymous function) | siesta-all.js:2561
queue.addAsyncStep.processor | siesta-all.js:7120
Class.methods.doSteps | siesta-all.js:5818
override | siesta-all.js:810
step.next | siesta-all.js:5814
nextFunc | siesta-all.js:7102
(anonymous function) | siesta-all.js:19409
t.chain({
waitFor : 'componentQuery', // or any other waitFor* functions
args : ['textfield[itemId=newOrgName]
});
Cheers!