Improve test for navigation
This commit is contained in:
parent
871728802b
commit
77ab003716
1 changed files with 9 additions and 1 deletions
|
@ -9,11 +9,19 @@ const page = new Page();
|
|||
|
||||
test('Navigate', async t => {
|
||||
await page.openNav();
|
||||
await t
|
||||
.click('a[href="/albums"]')
|
||||
.expect(Selector('div.p-page-albums').exists, {timeout: 5000}).ok();
|
||||
await page.openNav();
|
||||
await t
|
||||
.click('a[href="/places"]')
|
||||
.expect(Selector('div.leaflet-map-pane').exists).ok();
|
||||
await page.openNav();
|
||||
await t
|
||||
.click('a[href="/labels"]')
|
||||
.expect(Selector('main .p-page-labels').exists, {timeout: 5000}).ok();
|
||||
.expect(Selector('div.p-page-labels').exists, {timeout: 5000}).ok();
|
||||
await page.openNav();
|
||||
await t
|
||||
.click('a[href="/library"]')
|
||||
.expect(Selector('div.p-tab-upload').exists, {timeout: 5000}).ok();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue