Commit 3af6ec3e authored by Desiree Chevalier's avatar Desiree Chevalier

Update remove member modal for specs

parent 6ed25c9a
...@@ -62,6 +62,7 @@ export default { ...@@ -62,6 +62,7 @@ export default {
:action-cancel="$options.actionCancel" :action-cancel="$options.actionCancel"
:action-primary="actionPrimary" :action-primary="actionPrimary"
:title="actionText" :title="actionText"
data-qa-selector="remove_member_modal_content"
@primary="submitForm" @primary="submitForm"
> >
<form ref="form" :action="modalData.memberPath" method="post"> <form ref="form" :action="modalData.memberPath" method="post">
......
...@@ -7,6 +7,10 @@ module QA ...@@ -7,6 +7,10 @@ module QA
class Members < Page::Base class Members < Page::Base
include Page::Component::UsersSelect include Page::Component::UsersSelect
view 'app/assets/javascripts/vue_shared/components/remove_member_modal.vue' do
element :remove_member_modal_content
end
view 'app/views/shared/members/_invite_member.html.haml' do view 'app/views/shared/members/_invite_member.html.haml' do
element :member_select_field element :member_select_field
element :invite_member_button element :invite_member_button
...@@ -32,10 +36,12 @@ module QA ...@@ -32,10 +36,12 @@ module QA
end end
def remove_member(username) def remove_member(username)
page.accept_confirm do within_element(:member_row, text: username) do
within_element(:member_row, text: username) do click_element :delete_member_button
click_element :delete_member_button end
end
within_element(:remove_member_modal_content) do
click_button("Remove member")
end end
end end
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