Stabilise audio-player reply button clicking in playwright (#28243)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-10-21 11:36:21 +01:00 committed by GitHub
parent 061c8217b3
commit c278d2f31e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -242,6 +242,7 @@ test.describe("Audio player", () => {
// Find and click "Reply" button // Find and click "Reply" button
const clickButtonReply = async () => { const clickButtonReply = async () => {
await tile.scrollIntoViewIfNeeded();
await tile.hover(); await tile.hover();
await tile.getByRole("button", { name: "Reply", exact: true }).click(); await tile.getByRole("button", { name: "Reply", exact: true }).click();
}; };