2018-01-07 11:44:56 +01:00
|
|
|
import { Selector } from 'testcafe'
|
|
|
|
|
2018-01-07 12:44:25 +01:00
|
|
|
import { TEST_URL } from './utils'
|
2018-01-07 11:44:56 +01:00
|
|
|
|
|
|
|
|
2018-01-07 12:44:25 +01:00
|
|
|
// eslint-disable-next-line no-undef
|
2018-01-07 11:44:56 +01:00
|
|
|
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()
|
|
|
|
|
|
|
|
})
|