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