Skip to content

Commit

Permalink
Merge pull request #501 from ro0gr/forward-fallback-to-acceptance
Browse files Browse the repository at this point in the history
Forward to master "Fallback to acceptance tests"
  • Loading branch information
ro0gr authored Apr 20, 2020
2 parents ac654b0 + 817fedd commit c2d1a6f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions addon-test-support/-private/execution_context.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ export function getExecutionContext(pageObjectNode) {
let contextName;
if (integrationTestContext) {
contextName = 'integration';
} else if (isAcceptanceTest()) {
contextName = 'acceptance';
} else if (supportsRfc268()) {
contextName = 'rfc268';
}

if (!contextName) {
} else if (isAcceptanceTest()) {
contextName = 'acceptance';
} else {
throw new Error(`Looks like you attempt to access page object property outside of test context.
If that's not the case, please make sure you use the latest version of "@ember/test-helpers".`);
}
Expand Down

0 comments on commit c2d1a6f

Please sign in to comment.