Skip to content

Commit c385a1d

Browse files
committed
test(desktop): await theme readiness before resolving hover token
Wait for the production Buzz sidebar marker after async theme loading so a valid initializing theme is not rejected as transparent. Preserve the semantic endpoint, transparency guard and original equality assertions. Signed-off-by: Logan Johnson <[email protected]>
1 parent d6d7498 commit c385a1d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ test("profile hover uses the channel hover surface", async ({ page }) => {
100100

101101
const profile = page.getByTestId("sidebar-profile-card");
102102
const channel = page.getByTestId("channel-random");
103+
await expect(page.locator("html")).toHaveAttribute("data-buzz-sidebar", "");
103104
const hoverSurface = await channel.evaluate((element) => {
104105
const probe = document.createElement("span");
105106
probe.style.backgroundColor = "var(--buzz-hover-surface)";

0 commit comments

Comments
 (0)