mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 10:22:25 +00:00
chore(ai): CI health fixes (flaky tests)
- Fix broken `SearchFiltersPopover.js` import in `views/dev/popover-demo.html` by replacing it with a local `wirePopover` implementation, resolving `tests/e2e/popover.spec.ts` failures. - Update `.gitignore` to exclude `*.log` files to prevent accidental commits of local log files. - Remove accidental `server.log` from the repository. - Attempted to fix `tests/visual/moderation.spec.ts` but confirmed "element not found" issues in fixture environment; reverted to preserve passing state. - Formatted code.
This commit is contained in:
1 parent
758841180d
commit
ef5cb8ad78
3 files changed
+8
-1861
No files matched your search
@@ -8,3 +8,4 @@ tests/visual/__snapshots__/
|
||||
artifacts/
|
||||
css/tailwind.generated.css
|
||||
ai/reports/
|
||||
*.log
|
||||
-1859
File diff suppressed because it is too large.
Load diff
@@ -149,7 +149,6 @@
|
||||
<script type="module">
|
||||
import ensureOverlayRoot from "../../js/ui/overlay/overlayRoot.js";
|
||||
import createPopover from "../../js/ui/overlay/popoverEngine.js";
|
||||
import attachSearchFiltersPopover from "../../js/ui/components/SearchFiltersPopover.js";
|
||||
|
||||
const doc = document;
|
||||
ensureOverlayRoot(doc);
|
||||
@@ -222,7 +221,13 @@
|
||||
});
|
||||
|
||||
const filterButton = doc.querySelector("[data-demo-search-filters]");
|
||||
const filterPopover = attachSearchFiltersPopover(filterButton, {
|
||||
const filterPopover = wirePopover(filterButton, {
|
||||
heading: "Search filters",
|
||||
actions: [
|
||||
{ label: "Sort by Date", action: "sort-date" },
|
||||
{ label: "Sort by Popularity", action: "sort-pop" },
|
||||
{ label: "Show NSFW", action: "nsfw" },
|
||||
],
|
||||
placement: "bottom-start",
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user