← All posts

Skip Phone Number Verification in Signup Tests

· FakeSignup
QAtestingsignup formsautomation

To skip phone number verification in signup tests, focus on environments that offer email-only verification paths or allow you to use temporary email services. Many applications still rely on SMS for two-factor authentication, which complicates automated testing. By selecting or configuring your test environments to rely solely on email for verification, you can streamline your signup flow tests. This approach is particularly useful when you want to quickly create multiple test accounts without the overhead of managing phone numbers or SMS gateways.

Testing Email-Only Signup Paths

When testing signup flows, prioritize those that offer an email-only verification option. This is often the default for many web applications, especially for initial account creation. If an application does present a choice between email and phone verification, ensure your tests are configured to select the email path. This bypasses the need for SMS integration in your testing framework entirely.

For environments where you have control over the signup process, you can often disable SMS verification entirely. This might involve setting a specific configuration flag in your staging or development environment. For example, a feature flag like enable_sms_2fa could be set to false for your test instances. This ensures that the signup flow will naturally lead to an email verification step, which is much easier to automate.

Utilizing Temporary Email for Verification Codes

For signup flows that require email verification, you'll need a way to receive and process those verification emails. This is where temporary email services come in. Instead of using personal email addresses, which can lead to account lockout or privacy concerns, a temporary email allows you to receive emails for a limited time without registration.

You can integrate this into your testing workflow by using a service that provides an inbox where verification codes are delivered. The FakeSignup Chrome extension is a practical tool for this. It provides a dedicated inbox within its side panel where verification codes sent to your temporary email address will appear. This eliminates the need to constantly switch tabs or log into a separate email client to retrieve OTP codes.

Setting Up the FakeSignup Extension

To effectively skip phone number verification and manage email OTPs, you'll want to install and configure the FakeSignup extension. This tool simplifies the process of obtaining temporary email addresses and accessing the verification codes sent to them.

Here's how to get started:

  1. Install the Extension: Navigate to the Chrome Web Store and add FakeSignup to your browser. You can find it here: FakeSignup on the Chrome Web Store.
  2. Open the Extension: After installation, click the FakeSignup icon in your browser's toolbar. This will open its side panel.
  3. Generate a Temporary Email: Within the FakeSignup panel, you'll find an option to generate a new, unique temporary email address. This address is ready to receive emails immediately.
  4. Use the Email on the Signup Form: Copy this temporary email address and paste it into the email field of the signup form you are testing.
  5. Trigger Verification Email: Proceed with the signup process on the website. When the site sends a verification email (or an OTP via email), it will be directed to your temporary email address.
  6. Retrieve the Code: Return to the FakeSignup side panel. The verification email should appear there shortly, along with the OTP code. Copy the code directly from the panel and paste it into the verification field on the website.

This streamlined process allows you to handle email verification steps without any manual intervention beyond the initial copy-paste of the email address and OTP.

Managing Test Accounts and Credentials

Once you've successfully completed a signup flow using a temporary email, you'll often be prompted to set a password. For automated testing, it's crucial to have a strategy for managing these credentials.

If you're performing multiple signups within the same test session, the FakeSignup extension can help save these account details. Saved accounts are stored locally in your Chrome browser's storage. This means you can reuse these generated credentials for subsequent login tests without needing to re-sign up each time.

This saved state is particularly useful for testing scenarios that involve logging in after verification, or for testing features that require an authenticated user session. It removes the friction of repeatedly going through the signup process, allowing you to focus on testing other aspects of your application's authentication and user management.

Considerations for SMS-Heavy Applications

While the focus here is on bypassing phone verification, acknowledge that some applications are fundamentally SMS-centric. If an application's core functionality requires SMS verification and cannot be configured otherwise, you will need a different approach. This might involve integrating with a third-party SMS service provider that offers API access for receiving SMS messages, or manually performing these tests. However, for the majority of signup flows, opting for email verification is a more testable and efficient path. Prioritizing email verification in your test strategy will save significant time and resources.