Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test on language model settings page #584

Merged
merged 15 commits into from
Dec 24, 2024
Prev Previous commit
Next Next commit
Fix stimulus target
mattlindsey committed Dec 13, 2024
commit 26799e38d902d90bdbc96ea4e9a466145c496102
2 changes: 1 addition & 1 deletion app/views/settings/language_models/_form.html.erb
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
<%= link_to "(Test)", link_url, id: "test_language_model", data: { turbo_stream: true, action: "click->test-language-model#update_link" }, class: "inline-block ml-5" %>
<% end %>
</div>
<%= form.text_field :api_name, data-test-language-model-target: "input", class: "block shadow rounded-md border border-gray-200 outline-none px-3 py-2 mt-2 w-full dark:text-black" %>
<%= form.text_field :api_name, data: { test_language_model_target: "input" }, class: "block shadow rounded-md border border-gray-200 outline-none px-3 py-2 mt-2 w-full dark:text-black" %>
<span>As specified in the API docs</span>
</div>