2019-05-20 18:51:59 +02:00
|
|
|
import { Selector } from 'testcafe';
|
|
|
|
import testcafeconfig from './testcafeconfig';
|
|
|
|
import Page from "./page-model";
|
|
|
|
|
2019-05-21 17:00:46 +02:00
|
|
|
fixture`Use navigation`
|
|
|
|
.page`${testcafeconfig.url}`;
|
|
|
|
|
2019-05-20 18:51:59 +02:00
|
|
|
const page = new Page();
|
|
|
|
|
|
|
|
test('Navigate', async t => {
|
|
|
|
await page.openNav();
|
|
|
|
await t
|
|
|
|
.click('a[href="/places"]')
|
|
|
|
.expect(Selector('div.leaflet-map-pane').exists).ok();
|
|
|
|
await page.openNav();
|
|
|
|
await t
|
2019-05-28 03:49:44 +02:00
|
|
|
.click('a[href="/labels"]')
|
2019-06-20 16:24:32 +02:00
|
|
|
.expect(Selector('main .p-page-labels').exists, {timeout: 5000}).ok();
|
2019-05-20 18:51:59 +02:00
|
|
|
});
|