All files / addon-test-support/-exports extend.js

0% Statements 0/5
0% Branches 0/3
0% Functions 0/1
0% Lines 0/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24                                               
export { findElement } from 'ember-cli-page-object/test-support/extend/find-element';
export { findElementWithAssert } from 'ember-cli-page-object/test-support/extend/find-element-with-assert';
export { buildSelector, getContext, fullScope } from 'ember-cli-page-object/test-support/-private/helpers';
import {
  register as registerExecutionContext
} from 'ember-cli-page-object/test-support/-private/execution_context';
 
import IntegrationNativeEventsContext from 'ember-cli-page-object/test-support/-private/execution_context/integration-native-events';
import AcceptanceNativeEventsContext from 'ember-cli-page-object/test-support/-private/execution_context/acceptance-native-events';
import IntegrationEmberContext from 'ember-cli-page-object/test-support/-private/execution_context/integration';
import AcceptanceEmberContext from 'ember-cli-page-object/test-support/-private/execution_context/acceptance';
 
function useNativeEvents(flag = true) {
  if (flag) {
    registerExecutionContext('integration', IntegrationNativeEventsContext);
    registerExecutionContext('acceptance', AcceptanceNativeEventsContext);
  } else {
    registerExecutionContext('integration', IntegrationEmberContext);
    registerExecutionContext('acceptance', AcceptanceEmberContext);
  }
}
 
export { registerExecutionContext, useNativeEvents };