-
- this.setState({modalOpen: false})} />
-
+ this.setState({modalOpen: false})} />
);
-
}
}
diff --git a/nightwatch.conf.js b/nightwatch.conf.js
index a39ab128f..6823636c3 100644
--- a/nightwatch.conf.js
+++ b/nightwatch.conf.js
@@ -19,6 +19,8 @@ module.exports = {
},
'test_settings': {
'default': {
+ 'launch_url' : 'http://localhost:3000',
+ 'globals' : {},
'selenium_port': 6666,
'selenium_host': 'localhost',
'silent': true,
@@ -27,7 +29,7 @@ module.exports = {
'javascriptEnabled': true,
'acceptSslCerts': true,
'webStorageEnabled' : true,
- 'databaseEnabled' : true,
+ 'databaseEnabled' : true,""
'applicationCacheEnabled' : false,
'nativeEvents' : true
},
@@ -37,8 +39,11 @@ module.exports = {
'on_error' : true,
'path' : './tests/e2e/reports'
},
- 'exclude': [
- ]
+ 'exclude': []
+ },
+ 'integration': {
+ 'launch_url' : 'http://localhost:3000',
+ 'globals' : {}
}
}
};
diff --git a/package.json b/package.json
index 4ec24a27a..e7fc258c0 100644
--- a/package.json
+++ b/package.json
@@ -11,8 +11,8 @@
"lint-fix": "./node_modules/.bin/eslint bin/* . --fix",
"test": "NODE_ENV=test ./node_modules/.bin/mocha --compilers js:babel-core/register tests/helpers/*.js --require ignore-styles --recursive tests",
"test-watch": "NODE_ENV=test ./node_modules/.bin/mocha --compilers js:babel-core/register --recursive -w tests",
- "pree2e": "NODE_ENV=test ./scripts/pree2e.sh",
- "e2e": "NODE_ENV=test ./node_modules/.bin/nightwatch",
+ "pree2e": "node_modules/selenium-standalone/bin/selenium-standalone install",
+ "e2e": "NODE_ENV=test nightwatch",
"embed-start": "NODE_ENV=development npm run build && ./bin/cli serve --jobs"
},
"config": {
@@ -115,7 +115,7 @@
"material-design-lite": "^1.2.1",
"mocha": "^3.1.2",
"mocha-junit-reporter": "^1.12.1",
- "nightwatch": "^0.9.9",
+ "nightwatch": "^0.9.11",
"node-fetch": "^1.6.3",
"postcss-loader": "^1.1.0",
"postcss-modules": "^0.5.2",