@@ -11,32 +11,33 @@ class AssistantsTest < ApplicationSystemTestCase
1111 # assert_selector "h1", text: "Assistants"
1212 # end
1313
14- test "should create assistant " do
14+ test "should create Assistant " do
1515 visit new_assistant_url
1616
1717 fill_in "Description" , with : @assistant . description
1818 fill_in "Instructions" , with : @assistant . instructions
19- fill_in "Model" , with : @assistant . model
19+ find ( '#assistant_language_model_id' ) . find ( :xpath , 'option[1]' ) . select_option
2020 fill_in "Name" , with : @assistant . name
2121 fill_in "User" , with : @assistant . user_id
2222 click_text "Create Assistant"
2323
2424 assert_text "Assistant was successfully created"
25+ assert_text "claude-3-opus-20240229 from fixtures"
2526 click_text "Back"
2627 end
2728
2829 test "should update Assistant" do
2930 visit assistant_url ( @assistant )
3031 click_text "Edit this assistant" , match : :first
31-
3232 fill_in "Description" , with : @assistant . description
3333 fill_in "Instructions" , with : @assistant . instructions
34- fill_in "Model" , with : @assistant . model
34+ find ( '#assistant_language_model_id' ) . find ( :xpath , 'option[2]' ) . select_option
3535 fill_in "Name" , with : @assistant . name
3636 fill_in "User" , with : @assistant . user_id
3737 click_text "Update Assistant"
3838
3939 assert_text "Assistant was successfully updated"
40+ assert_text "claude-3-sonnet-20240229 from fixtures"
4041 click_text "Back"
4142 end
4243
0 commit comments