ember-cli-page-object
Version:
This ember-cli addon eases the construction of page objects on your acceptance and integration tests
20 lines (14 loc) • 594 B
JavaScript
import { run } from '@ember/runloop';
import ExecutionContext from './native-events-context';
import { wait } from '../compatibility';
export default function IntegrationNativeEventsExecutionContext(pageObjectNode, testContext) {
ExecutionContext.call(this, pageObjectNode, testContext);
}
IntegrationNativeEventsExecutionContext.prototype = Object.create(ExecutionContext.prototype);
IntegrationNativeEventsExecutionContext.prototype.visit = function() {};
IntegrationNativeEventsExecutionContext.prototype.andThen = function(cb) {
run(() => {
cb(this);
});
return wait();
};