Commit 05947b5a authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'ml-use-more-specific-selector-name' into 'master'

Use a more specific QA selector name

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