prints "Exacly 1 'newsearchparams' events have been fired" in the results which is fine, but it fails to print 'click firesOk reported correctly for newsearchparams'.
Also some nitpicks... the documentation for hasListener at https://bryntum.com/products/siesta/docs ... Observable is missing the desc parameter (which does work for this function) and the event and eventName parameters are missing their descriptions and eventName is missing its type (ie, ' : String').
Another documentation error... I think the middle parameter in https://bryntum.com/products/siesta/docs ... .FormField should be of type Object (the type returned by Ext.form.field.Base.getValue()) and have a name like 'value'.
I fixed the docs for hasListener. Regarding fieldHasValue method, this is the docs which is correct, isn't it?
/**
* Passes if the passed Field has the expected value.
*
* @param {Ext.form.field.Field/String} field A form field or a ComponentQuery
* @param {Mixed} value The value to compare to.
* @param {String} description The description of the assertion
*/
fieldHasValue : function(field, value, description) {
field = this.normalizeComponent(field);
this.is(field.getValue(), value, description);
},
Role('Siesta.Test.ExtJS.FormField', {
methods : {
/**
* Passes if the passed Field has the expected value.
*
* @param {Ext.Element} field The field
* @param {Ext.util.Region} region The region to compare to.
* @param {String} description The description of the assertion
*/
hasValue : function(field, value, description) {
this.is(field.getValue(), value, description);
}
}
});