Commit 7240c379 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch '244053-update-stale-register-spec' into 'master'

Add QA selector to new modal

Closes #244053

See merge request gitlab-org/gitlab!41029
parents cb36e6e9 96ffc958
......@@ -63,7 +63,11 @@ Once you confirm %{deleteAccount}, it cannot be undone or recovered.`),
primaryProps() {
return {
text: s__('Delete account'),
attributes: [{ variant: 'danger' }, { category: 'primary' }, { disabled: !this.canSubmit }],
attributes: [
{ variant: 'danger', 'data-qa-selector': 'confirm_deletion_button' },
{ category: 'primary' },
{ disabled: !this.canSubmit },
],
};
},
cancelProps() {
......
......@@ -11,17 +11,14 @@ module QA
view 'app/assets/javascripts/profile/account/components/delete_account_modal.vue' do
element :password_confirmation_field
end
view 'app/assets/javascripts/vue_shared/components/deprecated_modal.vue' do
element :save_changes_button
element :confirm_deletion_button
end
def delete_account(password)
click_element(:delete_account_button)
find_element(:password_confirmation_field).set password
click_element(:save_changes_button)
click_element(:confirm_deletion_button)
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