It will be timing out on evaluating the locator for matches, and not reaching the "visible" check. To allow extra time for the component/element to be located, define a timeout parameter like this:
Code:
ST.component('mylocator', 30000) // Allow up to 30 seconds for component/element to exist. Completes sooner if a match is found.
.click();
On the command line, the timeout ('-t') is the timeout for browser communication, which is different to the timeout in the menu within Sencha Studio - this lets you change the timeout for the Sencha Test Future APIs.
If you need to allow extra time for lots of components/elements, rather than defining timeout parameters like above (or changing the timeout value in Sencha Studio each time), you can set a global timeout for the Sencha Test Future APIs within your test suite:
Code:
describe('My Test Suite', function() {
beforeAll(function() {
ST.options.timeout = 10000; // Change the global timeout for Future APIs to 10 seconds (default is 5 seconds).
});
it('Should find a grid', function() {
ST.grid('mygrid');
});
});