On this page

Detectline docs

Everything you need to set up Detectline, read what it finds and keep your costs predictable. New here? Start with your first test; it takes about five minutes.

What Detectline does#

Detectline is a QA agent for pull requests. When a pull request's preview deployment is ready, Detectline opens it in a real browser and uses it the way a customer would: it clicks through the flows the change touches, fills in forms, goes through checkout with sandbox cards and checks that totals, discounts and taxes add up.

The result comes back to the pull request as a check and a comment with every step it took. Make the check required and a broken change can't be merged.

  • No test code to write. Detectline reads the pull request and what earlier tests taught it, then decides what to test. You can add instructions in plain words.
  • Your code is never read. It only sees what a visitor sees on the preview.
  • You approve every test. Each one shows its estimated price first, and you pay per step from a prepaid balance.

Your first test#

  1. Create an account and connect GitHub

    Sign up, then choose Install on GitHub on the Overview page. Install the Detectline app on your account or organization and pick the repositories to test. Already installed it from GitHub? Choose Already installed? Connect it instead.

  2. Add balance

    Tests are paid from your team's prepaid balance. Open Billing → Add balance. A typical pull request test costs well under a dollar; see pricing. When a new team connects GitHub for the first time, it gets a small free balance to try Detectline, once per GitHub account and only if that account is at least a month old.

  3. Make sure the preview is reachable

    Detectline needs to open your preview like a visitor. If your previews are protected (Vercel protection, a username and password, or Cloudflare Access), give it a way in first. If the flows you care about need a signed-in user, add a test account. Both are on the project page; see signed-in and protected previews.

  4. Open a pull request and approve the test

    When the preview deployment is ready, Detectline comments on the pull request with what it will test and the estimated price. Tick Run test and the test starts. It usually takes a few minutes.

  5. Read the result

    The Detectline check turns green or red, and a comment lists the steps and anything it found. The full run, with screenshots and a video of any failure, is on your dashboard.

How a test runs#

  1. Preview ready. Your host reports a successful preview deployment for the pull request's latest commit.
  2. Approval request. Detectline comments with the estimated price and opens a Detectline approval check with Run test and Skip buttons.
  3. Test. After approval, the estimate is held from your balance and the agent works through the preview step by step: reading the page, clicking, typing and checking amounts and text.
  4. Result. The check gets its result, the comment lists the steps, and the hold is settled: you pay for the steps the test actually took.

A new commit replaces the pending request with a new one for the new preview. Draft pull requests and production deployments are skipped.

Preview deployments#

Detectline finds the preview address on its own. It works with any host that reports deployments to GitHub, and reads the preview links these hosts post:

  • Vercel
  • Netlify
  • Cloudflare Pages and Workers
  • Render

Detectline only tests preview deployments of open pull requests, never production. If your previews are protected, see protected previews.

Approving a test#

Every test is approved on the pull request before it runs, so nothing is spent without someone deciding to. There are three ways to approve:

  • Tick Run test in Detectline's comment (or Skip to dismiss it).
  • Use the buttons on the Detectline approval check.
  • Comment @detectline, optionally with instructions (see comment commands).

The person approving needs write access to the repository, and depending on your team's rules may also need to be a team member; see who can approve. If the balance doesn't cover the estimate, the test doesn't start, nothing is charged and the pull request gets a comment saying so.

Comment commands#

Comment on a pull request to start a test with your own instructions:

@detectline
Test the pull request the usual way.
@detectline check the discount on orders over $100
Test with your instructions on top of what the pull request needs.
@detectline mobile …
Test once on a phone only (your project's phone, or a Galaxy S24). phone works too.
@detectline iphone …
Test once on an iPhone, with Safari's engine.

A command opens a new approval request with its own estimate. Quoted text and code blocks are ignored, so quoting an old command doesn't start a test.

Reading results#

Each test reports in three places:

  • The check. Detectline passes when the test found nothing wrong and fails when it found a problem. A test that couldn't finish because of a problem on our side is neutral and free. Phone tests get their own check, such as Detectline (Galaxy S24).
  • The comment. A summary, every step, regression checks for bugs that were fixed before, and the price.
  • The run page. On your dashboard: each step with its screenshot, a video of failed tests, and the details of every problem.

What Detectline catches

  • Wrong totals, discounts, installments and tax lines
  • Missing or wrong text, broken flows and dead buttons
  • Errors the page hides from the visitor, such as failed requests
  • Unreadable text, covered elements and broken images
  • Pages wider than a phone screen and buttons pushed off screen
  • Forms that send the same request twice, such as a double order

Is the bug real?

When a test fails, Detectline repeats its steps in a fresh browser and tells you whether the problem showed up again: confirmed, partly confirmed or not seen again. Failed tests also come with a Playwright test you can download from the run page and run with npx playwright test. It fails at the same check until the bug is fixed.

False alarms#

If Detectline reports something that isn't a bug, tick False alarm next to it in the result comment. That check won't be reported again on the repository. Anyone who can approve tests can mark a false alarm.

If something is intended (a price that looks wrong but isn't), add it as a note on the project page so the agent knows next time.

Instructions and memory#

Each repository has a project page under Projects. Two things there shape what Detectline tests:

  • Instructions for every test. Things the agent should always do, one per line. For example: Always finish a payment with a test card.
  • What Detectline knows. Notes and business rules learned from your tests, such as Shipping is free over $50. Detectline only keeps what it saw quoted on a page. Notes learned on a pull request wait until it's merged. You can add and delete notes yourself.

Detectline also remembers the bugs it found. A fixed bug is checked again on later pull requests, and you're told if it comes back.

Signed-in and protected previews#

Test accounts

For flows that need a signed-in user, add a test account on the project page. The agent types it in for you and never sees the password. Use accounts made for testing, not real customers. Accounts are stored encrypted.

Protected previews

If your previews aren't open to everyone, give Detectline a way in on the project page. Each of these is stored encrypted and only sent to your preview's own address, never to other sites such as a payment provider.

Vercel protection
In Vercel, open the project, then Settings → Deployment Protection → Protection Bypass for Automation, create a secret and paste it on the project page.
Username and password (HTTP basic authentication)
For previews that ask for a username and password in a browser pop-up, such as Netlify's Basic-Auth header or a password set on your server. Netlify's site-wide password page isn't a pop-up and isn't supported; use Basic-Auth for previews instead.
Cloudflare Access
Create a service token in Cloudflare (Zero Trust → Access → Service credentials), add a Service Auth rule for it to the preview's Access policy, and paste its Client ID and Client Secret on the project page.

Payment flows#

Detectline goes through checkout instead of stopping at the payment page. When a payment form appears, it recognizes the provider and uses that provider's sandbox test cards and 3D Secure codes:

  • iyzico
  • PayTR
  • Param
  • Stripe

If a payment form looks like a live one, the agent doesn't enter a card. Set your previews up with sandbox keys for the full flow to be tested.

Devices, model and language#

Devices
Desktop is always tested. Add a phone (Galaxy S24, Pixel 10 Pro or iPhone 17 Pro) to also test every pull request on a small screen. The phone test is a separate run with its own price and check.
Model
Claude Haiku 5.5 is fast and right for most pull requests. Claude Sonnet 5.5 and Claude Opus 5.5 are more careful on long flows and cost more per step. A change applies to approval requests opened after it.
Language and time zone
The test browser uses the language your site declares by default. Set a language and time zone to see prices and dates the way your customers do.
Double-click check
Off by default. After a test passes, Detectline repeats the flow and double-clicks the last submit button to see whether it creates two orders. This creates extra records on your preview. Every test already watches for duplicate requests without creating anything.

Notifications#

The result is always posted on the pull request. On the project page you can also get a Slack message or an email when a test finds problems. Passing tests don't send anything.

Teams and roles#

GitHub connections, the balance, projects and test runs belong to a team. Everyone starts with their own team; create more and switch between them from the team menu in the top-left corner of the dashboard. Invite people from the Team page; invites are single-use and expire after 7 days.

Owner
Billing, roles, connecting GitHub, the team's profile and deleting the team. A team has one owner, who can hand ownership to another member.
Moderator
Invites and removes members, and changes project settings and notes.
Member
Sees the balance and test runs, approves tests and marks false alarms.

The owner can set a monthly spending limit for moderators and members, and moderators for members. A test that would go over the approver's limit doesn't start, and the pull request says who can approve it instead.

Who can approve#

Approving a test spends the team's balance, so Detectline checks who is approving. The person needs write access to the repository. Detectline recognizes team members by their GitHub account, so connect GitHub in Settings (or sign in with GitHub). For people who aren't on the team, the owner picks a rule on the Team page:

  • Anyone with write access can approve.
  • Members; others ask to join (the default for new teams): the test waits for a member, and the owner and moderators get a request to add the person.
  • Members only.

Pull requests from forks and bots always need a team member to approve.

Pricing#

You pay per test step, from a prepaid balance. Every click, form field and check is one step.

ModelPer stepMinimum per run
Claude Haiku 5.5$0.02$0.10
Claude Sonnet 5.5$0.06$0.30
Claude Opus 5.5$0.12$0.60

When you approve, the estimate is held from your balance. When the test ends you pay for the steps it took and the rest comes back. You never pay for our mistakes:

  • Steps where the agent slipped and had to try again are free.
  • Looking at the page (screenshots, up to 5 per run) is free.
  • A test that can't finish because of a problem on our side is free.

Balance and alerts#

The balance belongs to the team, and only the owner adds to it. Every movement is on the Billing page: top-ups, holds and what each run cost.

The owner gets an email when the balance drops below the alert level ($5 unless you change it on the Billing page), and the dashboard shows a banner. If an approved test can't start because the balance is too low, the owner gets an email too.

Security and privacy#

  • No code access. Detectline tests the running preview; it never reads your repository's code.
  • Secrets stay secret. Test account passwords and preview access keys and passwords are stored encrypted. Passwords, card numbers and codes are masked in what the agent sees and in videos, and the values it types never appear in comments.
  • Previews only. The browser only opens your preview's address and the services it loads; internal addresses are blocked.
  • Your choice on training. Each project can opt out of its tests being used to improve Detectline.
  • Two-step verification. Turn it on in Settings to also ask for a code from an authenticator app when you sign in with your password.
  • Your data. You can delete your account from Settings. See the Privacy Policy for what we keep and why.

Troubleshooting#

Detectline didn't comment on my pull request
Check that the repository is selected in the Detectline app on GitHub, that the app is connected to your team (GitHub page), and that the preview deployment finished successfully. Draft pull requests are skipped. You can always start a test with an @detectline comment.
I approved, but the test didn't start
Detectline replies on the pull request with the reason: the balance doesn't cover the estimate, the approver reached their monthly limit, or they aren't on the team. Nothing is charged.
The test fails at a sign-in page
The preview is protected (add Vercel protection, a username and password, or a Cloudflare Access token) or the flow needs a signed-in user (add a test account). All of them are on the project page.
It reported something that isn't a bug
Tick False alarm in the result comment, and add a note on the project page if the behavior is intended.

Still stuck? Email [email protected] with the pull request link.