Commit bcfcb914 authored by Mark Lapierre's avatar Mark Lapierre

Use a more specific selector name

As per code review suggestion
parent c13174dc
......@@ -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