fix(ci): address unit and visual test failures

- Fixes `ReferenceError` in `tests/nostr-login-permissions.test.mjs` by defining `plainCall`.
- Improves reliability of `tests/visual/overlay-layers.spec.ts` by explicitly scrolling the footer button into view before asserting visibility.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-29 13:28:08 +00:00
1 parent 6d207d1094
commit b7b4194be3
4 files changed
+7 -79

No files matched your search

+3 -2
View File
@@ -144,8 +144,9 @@ test.describe("overlay layering tokens", () => {
// Ensure the footer button is scrolled into view (especially for mobile viewports)
await page.evaluate(() => {
const sidebar = document.getElementById("sidebar");
if (sidebar) {
sidebar.scrollTop = sidebar.scrollHeight;
const footerBtn = document.getElementById("footerDropdownButton");
if (sidebar && footerBtn) {
footerBtn.scrollIntoView({ block: "center", inline: "center" });
}
});