Skip to content

Commit 3825f89

Browse files
loganjLarry
andcommitted
test(desktop): settle hover surfaces before comparing colors
Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Signed-off-by: Logan Johnson <[email protected]>
1 parent a6fb55d commit 3825f89

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎desktop/tests/e2e/message-feedback-snapshots.spec.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ test("profile hover uses the channel hover surface", async ({ page }) => {
101101
const profile = page.getByTestId("sidebar-profile-card");
102102
const channel = page.getByTestId("channel-random");
103103
await channel.hover();
104+
await waitForAnimations(page);
104105
const channelHoverColor = await channel.evaluate(
105106
(element) => getComputedStyle(element).backgroundColor,
106107
);
107108
await profile.hover();
109+
await waitForAnimations(page);
108110
await expect(profile).toHaveCSS("background-color", channelHoverColor);
109111

110112
await waitForAnimations(page);

0 commit comments

Comments
 (0)