Commit 96ffc958 authored by Mark Lapierre's avatar Mark Lapierre

Add QA selector to new modal

Updates a test made stale by a UI change.
See https://gitlab.com/gitlab-org/gitlab/-/issues/244053
parent cf057764
......@@ -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