From ac4d236ae6e829e7473a16ddc482a478101b0324 Mon Sep 17 00:00:00 2001 From: theresa Date: Thu, 18 Nov 2021 16:17:16 +0100 Subject: [PATCH] Tests: Adapt acceptance tests to changes --- frontend/tests/acceptance/states.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/tests/acceptance/states.js b/frontend/tests/acceptance/states.js index e449a82b6..b99f77974 100644 --- a/frontend/tests/acceptance/states.js +++ b/frontend/tests/acceptance/states.js @@ -169,7 +169,7 @@ test.meta("testID", "states-004")("Create/delete album during add to album", asy await t .click(Selector(".nav-places + div")) .click(Selector(".nav-states")); - const FirstMoment = await Selector("a.is-album").nth(0).getAttribute("data-uid"); + const FirstMoment = await Selector("a.is-album").nth(2).getAttribute("data-uid"); await t.click(Selector("a.is-album").withAttribute("data-uid", FirstMoment)); const PhotoCountInMoment = await Selector("div.is-photo").count; const FirstPhoto = await Selector("div.is-photo.type-image").nth(0).getAttribute("data-uid"); @@ -215,5 +215,5 @@ test.meta("testID", "states-005")("Delete states button visible", async (t) => { await t .click(Selector(".nav-places + div")) .click(Selector(".nav-states")); - await page.checkButtonVisibility("delete", true, false); + await page.checkButtonVisibility("delete", false, false); });