From e580a117d61913a4e73f4cd05009ca40099b7036 Mon Sep 17 00:00:00 2001 From: Theresa Gresch Date: Sun, 5 Jul 2020 17:58:05 +0200 Subject: [PATCH] Frontend: Adapt acceptance tests to changes --- frontend/tests/acceptance/albums.js | 2 +- frontend/tests/acceptance/settings/general.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/tests/acceptance/albums.js b/frontend/tests/acceptance/albums.js index 3d7e1dad7..5cbbf37bb 100644 --- a/frontend/tests/acceptance/albums.js +++ b/frontend/tests/acceptance/albums.js @@ -58,7 +58,7 @@ test('#2 Update album', async t => { const PhotoCount = await Selector('div.p-photo').count; await t .expect(Selector('.v-card__text').nth(0).innerText).contains('All my animals') - .expect(Selector('.v-toolbar__title').nth(1).innerText).contains('Animals') + .expect(Selector('div').withText("Animals").exists).ok() .click(Selector('.nav-photos')); const FirstPhotoUid = await Selector('div.p-photo').nth(0).getAttribute('data-uid'); const SecondPhotoUid = await Selector('div.p-photo').nth(1).getAttribute('data-uid'); diff --git a/frontend/tests/acceptance/settings/general.js b/frontend/tests/acceptance/settings/general.js index 09cc02069..182474dcc 100644 --- a/frontend/tests/acceptance/settings/general.js +++ b/frontend/tests/acceptance/settings/general.js @@ -119,8 +119,8 @@ test('#1 Settings', async t => { .click(Selector('.nav-settings')) .click(Selector('.input-language input')) - .hover(Selector('div').withText('English').parent('div[role="listitem"]')) - .click(Selector('div').withText('English').parent('div[role="listitem"]')) + .hover(Selector('div').withText('Englisch').parent('div[role="listitem"]')) + .click(Selector('div').withText('Englisch').parent('div[role="listitem"]')) .click(Selector('.nav-settings')) .click(Selector('.input-upload input')) .click(Selector('.input-download input'))