diff --git a/app/views/partners/_form.html.erb b/app/views/partners/_form.html.erb
index 2e7ef1340c..af1fc69cf2 100644
--- a/app/views/partners/_form.html.erb
+++ b/app/views/partners/_form.html.erb
@@ -9,7 +9,6 @@
<%= f.input_field :email, class: "form-control" %>
<% end %>
- <%= submit_button %>
- <% end %>
-
-
\ No newline at end of file
+ <%= submit_button({text: "Send Invitation", icon: "envelope"}) %>
+ <% end %>
+
diff --git a/spec/features/partner_spec.rb b/spec/features/partner_spec.rb
index 5de13b81e0..ee339fd62b 100644
--- a/spec/features/partner_spec.rb
+++ b/spec/features/partner_spec.rb
@@ -22,14 +22,14 @@
visit url_prefix + "/partners/new"
fill_in "Name", with: "Frank"
fill_in "E-mail", with: "frank@frank.com"
- click_button "Save"
+ click_button "Send Invitation"
expect(page.find(".alert")).to have_content "added"
end
scenario "User creates a new partner with empty name" do
visit url_prefix + "/partners/new"
- click_button "Save"
+ click_button "Send Invitation"
expect(page.find(".alert")).to have_content "didn't work"
end
@@ -38,7 +38,7 @@
partner = create(:partner, name: "Frank")
visit url_prefix + "/partners/#{partner.id}/edit"
fill_in "Name", with: "Franklin"
- click_button "Save"
+ click_button "Send Invitation"
expect(page.find(".alert")).to have_content "updated"
partner.reload
@@ -49,7 +49,7 @@
partner = create(:partner, name: "Frank")
visit url_prefix + "/partners/#{partner.id}/edit"
fill_in "Name", with: ""
- click_button "Save"
+ click_button "Send Invitation"
expect(page.find(".alert")).to have_content "didn't work"
end