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()
|
||||
|
||||
})
|
Reference in New Issue
Block a user