X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/55a793150dbb2caa0bc2d6ad69a85515fa23e58d..d1de8462d6a3b6828c63952e34079739e28823c4:/test/system/account_deletion_test.rb diff --git a/test/system/account_deletion_test.rb b/test/system/account_deletion_test.rb index ca5ef7fe8..729f9cccc 100644 --- a/test/system/account_deletion_test.rb +++ b/test/system/account_deletion_test.rb @@ -7,7 +7,7 @@ class AccountDeletionTest < ApplicationSystemTestCase end test "the status is deleted and the personal data removed" do - visit edit_account_path + visit account_path click_on "Delete Account..." accept_confirm do @@ -21,7 +21,7 @@ class AccountDeletionTest < ApplicationSystemTestCase end test "the user is signed out after deletion" do - visit edit_account_path + visit account_path click_on "Delete Account..." accept_confirm do @@ -32,7 +32,7 @@ class AccountDeletionTest < ApplicationSystemTestCase end test "the user is shown a confirmation flash message" do - visit edit_account_path + visit account_path click_on "Delete Account..." accept_confirm do @@ -45,7 +45,7 @@ class AccountDeletionTest < ApplicationSystemTestCase test "can delete with any delay setting value if the user has no changesets" do with_user_account_deletion_delay(10000) do travel 1.hour do - visit edit_account_path + visit account_path click_on "Delete Account..." @@ -59,7 +59,7 @@ class AccountDeletionTest < ApplicationSystemTestCase create(:changeset, :user => @user) travel 1.hour do - visit edit_account_path + visit account_path click_on "Delete Account..." @@ -73,7 +73,7 @@ class AccountDeletionTest < ApplicationSystemTestCase create(:changeset, :user => @user, :created_at => Time.now.utc, :closed_at => Time.now.utc + 1.hour) travel 12.hours do - visit edit_account_path + visit account_path click_on "Delete Account..." @@ -87,7 +87,7 @@ class AccountDeletionTest < ApplicationSystemTestCase create(:changeset, :user => @user, :created_at => Time.now.utc, :closed_at => Time.now.utc + 1.hour) travel 10.hours do - visit edit_account_path + visit account_path click_on "Delete Account..."