feat: add initial project scaffolding with core directory structure and config files

This commit is contained in:
2026-06-13 21:37:13 +00:00
parent e429664bb8
commit e39c811e31
25 changed files with 1250 additions and 134 deletions
+20
View File
@@ -162,3 +162,23 @@ def test_admin_docs_access(alice):
)
page.goto(f"{BASE_URL}/docs/index.html", wait_until="domcontentloaded")
assert page.locator("a[href='/docs/admin.html']").count() >= 1
def test_docs_search_falls_back_to_bm25_when_devii_unavailable(page, app_server):
# The test server runs with DEVPLACE_DISABLE_SERVICES=1, so agent search is
# unavailable and the docs search page falls back to the classic BM25 results.
page.goto(f"{BASE_URL}/docs/search.html?q=authentication", wait_until="domcontentloaded")
page.locator(".docs-search-bigform").wait_for(state="visible")
assert page.locator("dp-docs-chat").count() == 0
def test_docs_search_bm25_returns_results(page, app_server):
page.goto(f"{BASE_URL}/docs/search.html?q=authentication", wait_until="domcontentloaded")
titles = page.locator(".docs-search-results .docs-search-result-title")
titles.first.wait_for(state="visible")
assert titles.count() >= 1
def test_docs_no_floating_autoopen(page, app_server):
page.goto(f"{BASE_URL}/docs/index.html", wait_until="domcontentloaded")
assert page.locator("[data-devii-autoopen]").count() == 0