Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot committed Dec 20, 2024
1 parent 7d94690 commit c20c316
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/system/llms/ai_llm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
it "seeded LLM has a description" do
visit "/admin/plugins/discourse-ai/ai-llms"

description = I18n.t("discourse_ai.llms.preseeded_model_description", model: llm_model.name)
description =
I18n.t("js.discourse_ai.llms.preseeded_model_description", model: llm_model.name)

expect(page).to have_css(
"[data-llm-id='#{llm_model.name}'] .ai-llm-list__description",
Expand All @@ -97,9 +98,7 @@

it "seeded LLM has a disabled edit button" do
visit "/admin/plugins/discourse-ai/ai-llms"
expect(page).to have_css(
"[data-llm-id='#{llm_model.name}'] .ai-llm-list__edit-button.disabled",
)
expect(page).to have_css("[data-llm-id='cdck-hosted'] .ai-llm-list__edit-button.disabled")
end
end
end

0 comments on commit c20c316

Please sign in to comment.