# Verify your SaaS

Check that your app works for a new customer before inviting people to use it. Use a test installation with sample data, and repeat the relevant checks after changing authentication, billing, permissions, or database modules.

This walkthrough covers the current JavaScript CRM. For another product, add checks for its main customer workflow. Review the [available capabilities](README.md#what-is-available) before choosing which features to test.

## Check the deployment

From your kit checkout, run `adios kit validate` if you edited module definitions. It checks the source without opening a database connection.

For a hosted installation, start with the browser checks below. For direct module administration, set up a migration connection as described in [Database setup](database.md#manual-setup), then use `adios kit status` to check installed modules.

## Open the app

Use the landing-page URL shown by your Adios deployment. Confirm that the landing page and `/app/` load, and that `/healthz` returns `status: ok`. You can also run these checks in a [disposable local preview](local-development.md#start-a-disposable-crm-preview).

Check the main screens on a phone and a desktop. Follow the sign-up link from the landing page and make sure the customer can reach the app without needing an Adios account.

## Complete the first customer workflow

1. Create a new account, open its verification email, and sign in.
2. Create a workspace and add a sample contact.
3. Create a pipeline and a deal, then move the deal to another stage.
4. Refresh the page, sign out, and sign in again. Confirm that the records remain available.
5. Request a password reset and confirm that the new password works.

For local email outbox mode, follow the captured links as described in [local development](local-development.md#run-the-real-javascript-app). Before inviting customers, repeat the email checks with your configured delivery provider and an address you control.

## Check workspace access

Create a second account with a separate workspace. Confirm that each account sees only its own workspace and records. Requests using the other workspace's ID must not return its customer data.

Invite a teammate into the first workspace. Check that the invitation reaches the intended address, requires explicit acceptance, and grants the selected role. Remove the teammate and confirm that their access ends. Use the [team permissions](crm-runtime.md#teams-and-invitations) as the expected behavior.

## Check billing if your app charges customers

Use your Stripe test credentials and configured product price. Follow [Stripe configuration](deployment.md#stripe-configuration), then check:

- Checkout opens for the correct product and price.
- A completed test payment updates the workspace's plan after the webhook is processed.
- The customer portal opens for the workspace's billing account.
- A cancellation or subscription change produces the access described by your plan rules.
- A failed or abandoned checkout leaves the workspace on its existing plan.

Returning from checkout alone must not unlock paid features. Confirm the resulting plan inside the app. Repeat these checks whenever you change prices, entitlements, or webhook handling.

## Check changes and recovery

In your test installation, restart the app and confirm that its records remain available. Before applying a database change to customer data, create a backup and verify that you can restore it to a separate database. See [operations](operations.md) for migration and recovery guidance.

If you customize module behavior, follow the [module guide](modules.md) to disable and re-enable a module in your test installation. Confirm that access follows its enabled state and that existing records are retained.

## Record the result

Keep a short record of the app version, the checks you ran, and anything that still needs work. Resolve failures in your core customer workflow before launch. Use the [launch guide](launch.md) for onboarding, support, and the next customer feedback cycle.
