mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
fix(test): resolve syntax error and duplicate block in overlay-layers.spec.ts
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
559928985c
commit
401cadff90
1 file changed
+3
-12
@@ -11,6 +11,9 @@ declare global {
|
||||
|
||||
test.describe("overlay layering tokens", () => {
|
||||
test("mobile sidebar shares desktop rail behavior", async ({ page }) => {
|
||||
// Increase timeout for this visual test which is prone to flakiness in CI
|
||||
test.setTimeout(120_000);
|
||||
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
|
||||
// Pre-suppress the disclaimer modal to avoid race conditions with app hydration
|
||||
@@ -18,18 +21,6 @@ test.describe("overlay layering tokens", () => {
|
||||
window.localStorage.setItem("hasSeenDisclaimer", "true");
|
||||
});
|
||||
|
||||
await page.waitForFunction(() =>
|
||||
Array.from(
|
||||
document.querySelectorAll("#disclaimerModal")
|
||||
).every((modalElement) => modalElement.classList.contains("hidden"))
|
||||
);
|
||||
}
|
||||
|
||||
test("mobile sidebar shares desktop rail behavior", async ({ page }) => {
|
||||
// Increase timeout for this visual test which is prone to flakiness in CI
|
||||
test.setTimeout(120_000);
|
||||
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await page.goto("/index.html", { waitUntil: "networkidle" });
|
||||
|
||||
// Wait for initial fade-in to complete so opacity doesn't interfere with visibility checks
|
||||
|
||||
Reference in new issue
Block a user