mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-08 05:43:04 +00:00
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:
1 parent
6d207d1094
commit
b7b4194be3
4 files changed
+7
-79
No files matched your search
@@ -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" });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user