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
module Project
module Settings
class Members < Page::Base
include Page::Component::UsersSelect
include QA::Page::Component::Select2
view 'app/views/shared/members/_invite_member.html.haml' do
......@@ -43,7 +42,8 @@ module QA
end
def add_member(username)
select_user :member_select_field, username
click_element :member_select_field
search_and_select username
click_element :invite_member_button
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