Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
import { task, timeout } from 'ember-concurrency';
export default Ember.Component.extend({
value: undefined,
timeout: 1000,
_updateValue: task(function*(value) {
this.set('value', value);
yield timeout(this.get('timeout'));
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@migbar
migbar / ember-cli-page-object-extensions.js
Last active November 27, 2020 05:09
ember-cli-page-object extension for ember-power-select
// helpers/ember-cli-page-object-extensions.js
import { buildSelector } from '../page-object';
let selectableChoose = function(selector, options = {}) {
return {
isDescriptor: true,
value(textToSelect) {
wait().then(function() {