e2e tests: init
and package.json files fix
This commit is contained in:
14
mpwo_client/e2e/index.test.js
Normal file
14
mpwo_client/e2e/index.test.js
Normal file
@ -0,0 +1,14 @@
|
||||
import { Selector } from 'testcafe'
|
||||
|
||||
const TEST_URL = process.env.TEST_URL
|
||||
|
||||
|
||||
fixture('/').page(`${TEST_URL}/`)
|
||||
|
||||
test('users should be able to view the \'/\' page', async t => {
|
||||
|
||||
await t
|
||||
.navigateTo(TEST_URL)
|
||||
.expect(Selector('A').withText('Dashboard').exists).ok()
|
||||
|
||||
})
|
@ -1,32 +1,4 @@
|
||||
{
|
||||
"name": "mpwo_client",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"date-fns": "^1.29.0",
|
||||
"history": "^4.7.2",
|
||||
"react": "^16.2.0",
|
||||
"react-dom": "^16.2.0",
|
||||
"react-helmet": "^5.2.0",
|
||||
"react-key-index": "^0.1.1",
|
||||
"react-redux": "^5.0.6",
|
||||
"react-router-dom": "^4.2.2",
|
||||
"react-router-redux": "^5.0.0-alpha.9",
|
||||
"react-scripts": "1.0.17",
|
||||
"redux": "^3.7.2",
|
||||
"redux-thunk": "^2.2.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "cd mpwo_client && react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test --env=jsdom",
|
||||
"eject": "react-scripts eject",
|
||||
"lint": "eslint --cache --ext .jsx --ext .js src"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^8.0.3",
|
||||
"eslint": "^4.13.1",
|
||||
"eslint-plugin-import": "^2.8.0",
|
||||
"eslint-plugin-react": "^7.5.1"
|
||||
}
|
||||
"version": "0.1.0"
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user