From 347229be6014fb97496665b186a81bfeeca20921 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Jun 2024 17:04:38 +0100 Subject: [PATCH] Avoid flakiness from hover styling in screenshot tests (#12615) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- playwright/element-web-test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playwright/element-web-test.ts b/playwright/element-web-test.ts index 2317978898..66b3683676 100644 --- a/playwright/element-web-test.ts +++ b/playwright/element-web-test.ts @@ -342,6 +342,10 @@ export const expect = baseExpect.extend({ .mx_ReplyChain { border-left-color: var(--cpd-color-blue-1200) !important; } + /* Avoid flakiness from hover styling */ + .mx_ReplyChain_show { + color: var(--cpd-color-text-secondary) !important; + } /* Use monospace font for timestamp for consistent mask width */ .mx_MessageTimestamp { font-family: Inconsolata !important;