Commit 44bd7e93 authored by ddavison's avatar ddavison

Refactor add_member to use search_and_select

Take out redundant Page::Component::UsersSelect
helper
parent 23aca014
...@@ -5,7 +5,6 @@ module QA ...@@ -5,7 +5,6 @@ module QA
module Project module Project
module Settings module Settings
class Members < Page::Base class Members < Page::Base
include Page::Component::UsersSelect
include QA::Page::Component::Select2 include QA::Page::Component::Select2
view 'app/views/shared/members/_invite_member.html.haml' do view 'app/views/shared/members/_invite_member.html.haml' do
...@@ -43,7 +42,8 @@ module QA ...@@ -43,7 +42,8 @@ module QA
end end
def add_member(username) def add_member(username)
select_user :member_select_field, username click_element :member_select_field
search_and_select username
click_element :invite_member_button click_element :invite_member_button
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment