[openstreetmap/openstreetmap-website] Account deletion cool-down period (PR #4313)
Anton Khorev
notifications at github.com
Fri Nov 17 11:32:26 UTC 2023
@AntonKhorev commented on this pull request.
> + create(:changeset, :user => user, :created_at => Time.now.utc - n.days)
+ end
+ session_for(user)
+
+ get account_deletion_path
+ assert_response :success
+ assert_select ".btn", "Delete Account" do
+ assert_select ">@disabled", 0
+ end
+ end
+ end
+
+ def test_delay
+ with_user_account_deletion_delay(48) do
+ user = create(:user)
+ (1..5).reverse_each do |n|
Maybe here it's possible to test correctly with only one changeset, if the `<time>` check is present.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4313#discussion_r1397129954
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4313/review/1736704376 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231117/bfe2b519/attachment.htm>
More information about the rails-dev
mailing list