Merge pull request #1884 from PR0M3TH3AN/fix-visual-test-sidebar-fade-726574171242029755

fix(test): resolve flaky sidebar visibility check in visual tests
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-28 11:12:47 -05:00
commit 8e2e641e07
1 file changed
+5
+5
View File
@@ -45,6 +45,11 @@ test.describe("overlay layering tokens", () => {
await dismissDisclaimerModal(page);
// Wait for initial fade-in to complete so opacity doesn't interfere with visibility checks
await page.waitForFunction(
() => !document.getElementById("sidebar")?.classList.contains("fade-in")
);
await expect(page.locator("#mobileMenuBtn")).toHaveCount(0);
const collapseToggle = page.locator("#sidebarCollapseToggle");