e2e tests: init

and package.json files fix
This commit is contained in:
SamR1
2018-01-07 11:44:56 +01:00
parent 7c3ffa46bd
commit 3a94f9a1b2
7 changed files with 1960 additions and 118 deletions

View 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()
})

View File

@ -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