I would like to wait max number of msecs until a given element is visible before continuing, is this possible?
Not currently, but you can follow the thread here: Add waitFor(selector) test helper · Issue #127 · emberjs/rfcs · GitHub
Ember try to resolve all Promisse before render. So you could use a dump promisse. Or control it using a timeout javacirpt
didInsertElement: function() {
let cmp = this;
setTimeout( () => {
cmp.set("loading", false);
}, 3000);
this.set("register-as', this);
}
1 Like