Skip to content

Commit

Permalink
Change text on invitation link
Browse files Browse the repository at this point in the history
  • Loading branch information
sfnelson committed Mar 12, 2024
1 parent b8bc7ca commit a18f897
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/admin_users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
method: :delete,
form: { data: { turbo_confirm: "Are you sure?" } } %>
<% end %>
<%= button_to "Invite", invite_admin_admin_user_path(admin), class: "button button--primary", form: { id: "invite" } %>
<%= button_to "Generate login link", invite_admin_admin_user_path(admin), class: "button button--primary", form: { id: "invite" } %>
</div>

<h2>Authentication</h2>
Expand Down
2 changes: 1 addition & 1 deletion spec/system/admin/invitation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def encode_token(**args)

expect(page).to have_css("button", text: "Invite")

click_button "Invite"
click_button "Generate login link"

expect(page).to have_css("input[type=text][value*=token]")
end
Expand Down

0 comments on commit a18f897

Please sign in to comment.