Commit a8ba6a0d authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-update-remove-member-modal' into 'master'

Update remove member modal for specs

Closes #227672

See merge request gitlab-org/gitlab!36483
parents a4c38828 3af6ec3e
......@@ -62,6 +62,7 @@ export default {
:action-cancel="$options.actionCancel"
:action-primary="actionPrimary"
:title="actionText"
data-qa-selector="remove_member_modal_content"
@primary="submitForm"
>
<form ref="form" :action="modalData.memberPath" method="post">
......
......@@ -7,6 +7,10 @@ module QA
class Members < Page::Base
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
element :member_select_field
element :invite_member_button
......@@ -32,10 +36,12 @@ module QA
end
def remove_member(username)
page.accept_confirm do
within_element(:member_row, text: username) do
click_element :delete_member_button
end
within_element(:member_row, text: username) do
click_element :delete_member_button
end
within_element(:remove_member_modal_content) do
click_button("Remove member")
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