Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export function visit() { | ||
if (!window.visit) { | ||
throw new Error('visit is only available during acceptance tests'); | ||
} | ||
|
||
return window.visit(...arguments); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
/* eslint-env node */ | ||
|
||
let browsers = [ | ||
'ie 9', | ||
'last 1 Chrome versions', | ||
'last 1 Firefox versions', | ||
'last 1 Safari versions' | ||
]; | ||
if (process.env.EMBER_ENV === 'development') { | ||
browsers = ['last 1 Chrome versions']; | ||
} | ||
module.exports = { | ||
browsers: [ | ||
'ie 9', | ||
'last 1 Chrome versions', | ||
'last 1 Firefox versions', | ||
'last 1 Safari versions' | ||
] | ||
browsers | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { moduleForComponent, test } from 'ember-qunit'; | ||
import { visit } from 'ember-native-dom-helpers/test-support/helpers'; | ||
|
||
moduleForComponent('fillIn', 'Integration | Test Helper | visit', { | ||
integration: true | ||
}); | ||
|
||
test('It raises an error in integration', function(assert) { | ||
assert.throws(function() { | ||
visit('/somewhere'); | ||
}, 'visit is only available during acceptance tests'); | ||
}); |