From f86fae523d7f8b297053529f51ea20de359b5f8e Mon Sep 17 00:00:00 2001 From: Keith Schacht Date: Wed, 14 Feb 2024 15:52:32 -0600 Subject: [PATCH] Use "Log In" on the login form button (#133) --- app/views/sessions/new.html.erb | 2 +- app/views/users/new.html.erb | 2 +- test/application_system_test_case.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 28adbebfc..140812629 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -8,6 +8,6 @@ <%= form_with(url: login_path, method: :post, class: "flex flex-col space-y-4 w-80") do |f| %> <%= f.email_field :email, id: "email", autofocus: true, placeholder: "Email address", class: "border border-gray-400 rounded text-black p-3"%> <%= f.password_field :password, id: "password", autofocus: true, placeholder: "Password", class: "border border-gray-400 rounded text-black p-3"%> - <%= f.submit "Continue", class: 'border border-teal-600 rounded text-teal-600 hover:bg-teal-700 hover:text-white font-light p-4 text-center cursor-pointer' %> + <%= f.submit "Log In", class: 'border border-teal-600 rounded text-teal-600 hover:bg-teal-700 hover:text-white font-light p-4 text-center cursor-pointer' %> <% end %> diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 33b456e97..465c8c5a9 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -21,6 +21,6 @@ <%= f.fields_for :personable_attributes, @person.personable do |user_fields| %> <%= user_fields.password_field :password, id: "email", autofocus: true, placeholder: "Password", class: "border border-gray-400 rounded text-black p-3 w-full"%> <% end %> - <%= f.submit "Continue", class: 'border border-teal-600 rounded text-teal-600 hover:bg-teal-700 hover:text-white font-light p-4 text-center cursor-pointer' %> + <%= f.submit "Sign Up", class: 'border border-teal-600 rounded text-teal-600 hover:bg-teal-700 hover:text-white font-light p-4 text-center cursor-pointer' %> <% end %> diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 6257083f3..47da7b060 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -14,7 +14,7 @@ def login_as(user, password = "secret") assert_current_path login_path, wait: 2 fill_in "email", with: user.person.email fill_in "password", with: password - click_text "Continue" + click_on "Log In" assert_current_path new_assistant_message_path(assistant), wait: 2 end