From c278d2f31e13ab56ae094499230de3bfbe0613ff Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 21 Oct 2024 11:36:21 +0100 Subject: [PATCH] Stabilise audio-player reply button clicking in playwright (#28243) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- playwright/e2e/audio-player/audio-player.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/playwright/e2e/audio-player/audio-player.spec.ts b/playwright/e2e/audio-player/audio-player.spec.ts index a8f483a375..c2081dfcd8 100644 --- a/playwright/e2e/audio-player/audio-player.spec.ts +++ b/playwright/e2e/audio-player/audio-player.spec.ts @@ -242,6 +242,7 @@ test.describe("Audio player", () => { // Find and click "Reply" button const clickButtonReply = async () => { + await tile.scrollIntoViewIfNeeded(); await tile.hover(); await tile.getByRole("button", { name: "Reply", exact: true }).click(); };