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.`),
return {
text: s__('Delete account'),
attributes: [
{ variant: 'danger', 'data-qa-selector': 'confirm_deletion_button' },
{ variant: 'danger', 'data-qa-selector': 'confirm_delete_account_button' },
{ category: 'primary' },
{ disabled: !this.canSubmit },
],
......
......@@ -11,14 +11,14 @@ module QA
view 'app/assets/javascripts/profile/account/components/delete_account_modal.vue' do
element :password_confirmation_field
element :confirm_deletion_button
element :confirm_delete_account_button
end
def delete_account(password)
click_element(:delete_account_button)
find_element(:password_confirmation_field).set password
click_element(:confirm_deletion_button)
click_element(:confirm_delete_account_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