mirror of
https://github.com/we-promise/sure.git
synced 2026-09-03 05:41:18 +00:00
* Add live AI checks to system health Give super admins a dedicated AI status view with bounded liveness probes for LLMs, vector stores, pgvector, and embedding endpoints. Record sanitized failures in both the system debug log and Rails logger, and document the recommended local configuration.\n\nCloses #3145 * Fix AI health CI checks * Address AI health review feedback * Correct Ollama model preload guidance * Distinguish OpenAI-compatible providers * Make Ollama startup readiness explicit * Recognize Cloudflare AI endpoints
22 lines
702 B
Ruby
22 lines
702 B
Ruby
require "test_helper"
|
|
|
|
class DS::TabsTest < ViewComponent::TestCase
|
|
test "can navigate to the selected tab for server-backed content" do
|
|
render_inline(DS::Tabs.new(
|
|
active_tab: "background_jobs",
|
|
url_param_key: "tab",
|
|
navigate_on_change: true
|
|
)) do |tabs|
|
|
tabs.with_nav do |nav|
|
|
nav.with_btn(id: "background_jobs", label: "Background jobs")
|
|
nav.with_btn(id: "ai", label: "AI status")
|
|
end
|
|
tabs.with_panel(tab_id: "background_jobs") { "Jobs" }
|
|
tabs.with_panel(tab_id: "ai") { "AI" }
|
|
end
|
|
|
|
assert_selector "[data-ds--tabs-url-param-key-value='tab']"
|
|
assert_selector "[data-ds--tabs-navigate-on-change-value='true']"
|
|
end
|
|
end
|