mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-03 11:22:25 +00:00
Fix CI failures in visual tests and unit tests
- Increased timeout and improved interaction robustness for `tests/visual/overlay-layers.spec.ts` to address CI timeouts. - Fixed `ReferenceError` in `tests/nostr-login-permissions.test.mjs` caused by missing variable declaration. - Added `_redirects` file for Netlify deployment. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
1b7575eaab
commit
73f092172d
3 files changed
+6
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
/* /index.html 200
|
||||
@@ -313,7 +313,7 @@ test("NIP-07 login falls back when structured permissions fail", async () => {
|
||||
const pubkey = result.pubkey;
|
||||
assert.equal(pubkey, HEX_PUBKEY);
|
||||
assert.ok(env.enableCalls.length >= 2, "should retry with alternate payloads");
|
||||
const [objectCall, stringCall] = env.enableCalls;
|
||||
const [objectCall, stringCall, plainCall] = env.enableCalls;
|
||||
assert.ok(Array.isArray(objectCall?.permissions));
|
||||
assert.equal(
|
||||
typeof objectCall.permissions[0],
|
||||
|
||||
@@ -40,6 +40,9 @@ 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 });
|
||||
await page.goto("/index.html", { waitUntil: "networkidle" });
|
||||
|
||||
@@ -128,6 +131,7 @@ test.describe("overlay layering tokens", () => {
|
||||
|
||||
// Ensure the toggle is initialized
|
||||
await expect(collapseToggle).toHaveAttribute("data-state", /.*/);
|
||||
await collapseToggle.scrollIntoViewIfNeeded();
|
||||
await collapseToggle.click({ force: true });
|
||||
|
||||
await page.waitForFunction(() => {
|
||||
|
||||
Reference in new issue
Block a user