Uebernimm Enum-Listen und Filtergruppen in die Taxonomie, speichere Suchtreffer als Kandidaten und lasse CI das vorhandene API-Image nutzen.
Deploy Development / deploy (push) Successful in 2m6s
Test Suite / pytest-backend (push) Failing after 14s
Test Suite / smoke-dev (push) Successful in 1s
Test Suite / frontend-checks (push) Successful in 28s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-04 15:12:51 +02:00
1 parent 2117ca6b54
commit 68a8e3d945
23 files changed
+481 -118

No files matched your search

+14
View File
@@ -20,6 +20,7 @@ EXPAND_LABELS = (
"Immer alle Filter anzeigen",
"weitere Filter anzeigen",
)
MORE_OPTION_SELECTOR = 'button:has-text("weitere"), a:has-text("weitere")'
def load_result_page(url: str, *, playwright: bool = True) -> tuple[str, str, int, bool]:
@@ -101,6 +102,7 @@ def _fetch_playwright(url: str, *, expand_filters: bool = False) -> tuple[int, s
continue
if expand_filters:
_expand_filter_sections(page)
_expand_more_options(page)
html = page.content()
status = response.status if response is not None else 200
browser.close()
@@ -119,6 +121,18 @@ def _expand_filter_sections(page: object) -> None:
return
def _expand_more_options(page: object) -> None:
locator = page.locator(MORE_OPTION_SELECTOR)
for _ in range(80):
if locator.count() == 0:
return
try:
locator.first.click(timeout=2000)
page.wait_for_timeout(350)
except Exception:
return
def _blocked(status: int, html: str) -> bool:
if status in {401, 403, 429}:
return True