From be84507c3e270c3cca79a0c868f5f8b7fc5dc304 Mon Sep 17 00:00:00 2001 From: theresa Date: Mon, 20 Sep 2021 20:09:41 +0200 Subject: [PATCH] Tests: Add acceptance test --- frontend/tests/acceptance/places.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/tests/acceptance/places.js b/frontend/tests/acceptance/places.js index 80154d849..522bd4e06 100644 --- a/frontend/tests/acceptance/places.js +++ b/frontend/tests/acceptance/places.js @@ -21,7 +21,15 @@ test.meta("testID", "places-001")("Test places", async (t) => { .expect(Selector("div.p-map-control").visible) .ok() .expect(getLocation()) - .contains("Berlin"); + .contains("Berlin") + .click(Selector(".nav-browse")) + .expect(Selector("div.is-photo").exists) + .ok() + .click(Selector(".nav-places")) + .expect(Selector("#map").exists, { timeout: 15000 }) + .ok() + .expect(Selector("div.p-map-control").visible) + .ok(); }); test.meta("testID", "places-002")("Open photo from places", async (t) => {