Your form says “Code sent.” Check whether the SMS arrives and whether your app verifies the phone number for that sign-up attempt.
Use a staging site you control, a test account, your SMS provider and an SMSPVA rental.
1. Check hCaptcha if your form uses it
On staging, verify that an accepted token lets the app request a code and that a rejected token blocks the send. Use the official hCaptcha test keys and see NoneCap’s setup guide for details.
2. Choose and activate a rental number
Sign in to SMSPVA and open Rent numbers. Check the rental services for your destination. If your app is unlisted, check whether OTHER is offered there. Review the price and duration, confirm the rental, then activate the order. Check that it is active before requesting a code. In the Rental API, active is state=1.
Start with one sender and one destination. A successful run applies to the route you tested.
3. Run one manual test on staging
- Request the code. Submit the active rental number once. In your staging logs, record the sending provider’s initial status and message ID, when available.
- Check the inbox. In the SMSPVA dashboard, look for a new message from your sender. Record when it appears.
- Verify the number. Enter the code in the same sign-up attempt. Confirm that the application marks the phone number as verified for that test account.
| What you observed | Where to look |
|---|---|
| The app did not request an SMS | Form submission, CAPTCHA verdict and send job |
| The provider rejected the request | Provider response and sender configuration |
| Accepted. No matching SMS in time. | Rental state, inbox and delivery route |
| SMS received. App rejected the code. | Code expiry and the sign-up attempt |
NoneCap for hCaptcha QA. NoneCap is a captcha solver service that focuses on hCaptcha. For staging QA, use the official hCaptcha test keys to verify the accepted and rejected paths before the SMS step.
Automate with Playwright
Run app behavior tests in regular CI. Use a separate staging run to check delivery through your SMS provider.
4. Test app behavior in routine CI
Use a staging SMS adapter that captures the code. Simulate a delayed message with the adapter and use a server-side test clock to exercise expiry. Check valid, incorrect and expired codes.
5. Run a separate delivery check
Use one dedicated, active rental per test. Read the inbox before requesting a code. Use APIRequestContext to call Rental SMS and expect.poll to wait for a match. The example uses app-specific helpers for the form, the provider result in staging logs and the verified account state.
import { test, expect } from '@playwright/test';
import { activeRental, snapshotInbox, requestCode, findFreshCode,
submitCode, isPhoneVerified } from './staging-helpers';
test('verifies the number using a received SMS', async ({ page, request }) => {
test.setTimeout(90_000);
const rental = await activeRental(request);
const before = await snapshotInbox(request, rental.id);
const attempt = await requestCode(page, rental);
expect(attempt.providerAccepted).toBe(true);
let code = '';
await expect.poll(async () => {
code = (await findFreshCode(request, rental.id, before, attempt)) ?? '';
return Boolean(code);
}, { timeout: attempt.receiveBudgetMs, intervals: [1_000, 2_000] }).toBe(true);
await submitCode(page, attempt.id, code);
expect(await isPhoneVerified(request, attempt.id)).toBe(true);
});
Match the message. Call method=sms with the rental order ID and API key. Check HTTP and JSON status=1, then inspect SmsList and OtherSms. Compare against the snapshot, expected sender, receive time and your message format. Add an attempt marker in the message if your staging template supports it.
Bound the wait. Set receiveBudgetMs to a positive value within the test window and rental expiry. Leave time to submit the code before it expires. Report inbox-read errors separately from a delivery timeout. Poll only the inbox.
Record the three outcomes. Save their timestamps under one test-run ID. Keep codes, credentials and full phone numbers out of shared logs and traces. Keep the API key in the test runner.
