feat: add multi-channel Devii sessions with docs search mode and channel-aware conversation persistence
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user