diff --git a/tests/e2e/blocks/audio-video.spec.js b/tests/e2e/blocks/audio-video.spec.js index 264042bee7..33a26c2a10 100644 --- a/tests/e2e/blocks/audio-video.spec.js +++ b/tests/e2e/blocks/audio-video.spec.js @@ -18,6 +18,7 @@ const MP3_TEST = 'https://www.greenpeace.org/static/planet4-assets/tests/wochens */ const addVideoOrAudioBlock = async ({page}, mediaType, mediaLink) => { await searchAndInsertBlock({page}, mediaType, mediaType); + await page.getByRole('button', {name: 'Toggle block inserter'}).click(); await page.getByRole('button', {name: 'Insert from URL'}).click(); await page.getByPlaceholder('Paste or type URL').fill(mediaLink); await page.keyboard.press('Enter'); @@ -35,8 +36,8 @@ test('check the Audio and Video blocks', async ({page, admin, editor}) => { await addVideoOrAudioBlock({page}, 'video', MP4_TEST); // Add Audio blocks with the various examples. - await addVideoOrAudioBlock({page}, 'audio', MP3_TEST); await addVideoOrAudioBlock({page}, 'audio', SOUNDCLOUD_TEST); + await addVideoOrAudioBlock({page}, 'audio', MP3_TEST); // Publish page. await publishPostAndVisit({page, editor});