From 4f6ba2c2d0e555d7bf2011a408a0d018642a701f Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Sun, 15 Feb 2026 22:53:21 +0400 Subject: [PATCH] Update docs --- docs/ui-testing.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/ui-testing.md b/docs/ui-testing.md index 7c6139af60..b8a4857d40 100644 --- a/docs/ui-testing.md +++ b/docs/ui-testing.md @@ -121,6 +121,20 @@ Test accounts do not receive real SMS. The confirmation code is **the DC number Test numbers are still subject to flood limits. If a number gets rate-limited, pick a different `YYYY` suffix. +### Deleting Test Accounts + +Tests that exercise the sign-up flow create an account on the test servers. Re-running the same test with the same phone number will skip sign-up because the account already exists. To get a fresh sign-up screen, delete the account first with the `test-helper` CLI: + +```bash +cd build-system/test-helper +swift run test-helper delete-account \ + --api-id --api-hash --phone 9996625678 +``` + +The tool connects to the test datacenters, authenticates with the given number, and deletes the account. If no account exists, it exits successfully. Run it before any test that needs a clean sign-up flow. + +The `--api-id` and `--api-hash` are your Telegram API credentials from [my.telegram.org](https://my.telegram.org). + ### Security Do not store any important or private information in test accounts. Anyone can use the simplified authorization mechanism to access them.