diff --git a/addon-test-support/-private/execution_context/acceptance.js b/addon-test-support/-private/execution_context/acceptance.js index e5160896..0ce998e0 100644 --- a/addon-test-support/-private/execution_context/acceptance.js +++ b/addon-test-support/-private/execution_context/acceptance.js @@ -77,20 +77,6 @@ AcceptanceExecutionContext.prototype = { $selection.blur(); }, - assertElementExists(selector, options) { - /* global find */ - let result = find(selector, options.testContainer || findClosestValue(this.pageObjectNode, 'testContainer')); - - if (result.length === 0) { - throwBetterError( - this.pageObjectNode, - options.pageObjectKey, - ELEMENT_NOT_FOUND, - { selector } - ); - } - }, - find(selector, options) { let result; diff --git a/addon-test-support/-private/execution_context/integration.js b/addon-test-support/-private/execution_context/integration.js index 513cd8b4..d53dd1db 100644 --- a/addon-test-support/-private/execution_context/integration.js +++ b/addon-test-support/-private/execution_context/integration.js @@ -85,26 +85,6 @@ IntegrationExecutionContext.prototype = { $selection.blur(); }, - assertElementExists(selector, options) { - let result; - let container = options.testContainer || findClosestValue(this.pageObjectNode, 'testContainer'); - - if (container) { - result = $(selector, container); - } else { - result = this.testContext.$(selector); - } - - if (result.length === 0) { - throwBetterError( - this.pageObjectNode, - options.pageObjectKey, - ELEMENT_NOT_FOUND, - { selector } - ); - } - }, - find(selector, options) { let result; let container = options.testContainer || findClosestValue(this.pageObjectNode, 'testContainer'); diff --git a/addon-test-support/-private/execution_context/native-events-context.js b/addon-test-support/-private/execution_context/native-events-context.js index 639d889f..53de7e13 100644 --- a/addon-test-support/-private/execution_context/native-events-context.js +++ b/addon-test-support/-private/execution_context/native-events-context.js @@ -100,21 +100,6 @@ ExecutionContext.prototype = { blur(element); }, - assertElementExists(selector, options) { - let container = options.testContainer || findClosestValue(this.pageObjectNode, 'testContainer'); - - let result = this.$(selector, container); - - if (result.length === 0) { - throwBetterError( - this.pageObjectNode, - options.pageObjectKey, - ELEMENT_NOT_FOUND, - { selector } - ); - } - }, - find(selector, options) { let container = options.testContainer || findClosestValue(this.pageObjectNode, 'testContainer'); diff --git a/addon-test-support/-private/execution_context/rfc268.js b/addon-test-support/-private/execution_context/rfc268.js index fa297d67..0031d83e 100644 --- a/addon-test-support/-private/execution_context/rfc268.js +++ b/addon-test-support/-private/execution_context/rfc268.js @@ -61,19 +61,6 @@ ExecutionContext.prototype = { return this.invokeHelper(selector, options, blur); }, - assertElementExists(selector, options) { - let result = this.getElements(selector, options); - - if (result.length === 0) { - throwBetterError( - this.pageObjectNode, - options.pageObjectKey, - ELEMENT_NOT_FOUND, - { selector } - ); - } - }, - find(selector, options) { selector = buildSelector(this.pageObjectNode, selector, options); let result = this.getElements(selector, options);