Frontend: Add acceptance test

This commit is contained in:
Theresa Gresch 2020-07-15 12:23:04 +02:00
parent acee2c57fd
commit b314ef2a27

View file

@ -18,4 +18,12 @@ test('#1 Test places', async t => {
await t
.expect(Selector('div.p-map-control').visible).ok()
.expect(getLocation()).contains('Berlin');
});
test('#2 Open photo from places', async t => {
await t
.click(Selector('.nav-places'))
.expect(Selector('#p-photo-viewer').visible).notOk()
.click(Selector('div.marker').nth(0))
.expect(Selector('#p-photo-viewer').visible).ok();
});