Locus

Questions QA teams ask.

Plain answers about recording, ambiguous targets, logins and CI. Where Locus has a limit, the answer says so.

Common questions

Not here? Write to [email protected].

Do I have to change my application?

No. You add your site's address in Locus, then run locus-runner record on your machine. It opens a browser window where you use the site as a tester would, and Locus records what happens. The recorder's toolbar is drawn in its own Shadow DOM, so it does not appear in the recording. You need Node 20 and a terminal, and you sign in to your app inside that window.

What happens when a developer renames an id the test used?

Locus is built so that one broken locator does not have to end the test. For each target it saves at least three independent strategies: semantic (role and name), stable attribute (such as a test id) and relational (position in the DOM). It saves two when one of them is a unique stable id or a unique, trustworthy role and name.

At replay the strategies are tried in order. The first one that finds exactly one element wins, and the others are checked against it. If one of them points at a different element, the step fails and nothing is clicked. If a more trusted strategy matched several elements, the winner also needs a second strategy of another family to confirm it. The product page walks through this as an illustration, not measured results.

Does Locus fix or rewrite a broken test by itself?

No. Locus does not edit your test. When a target cannot be resolved the step fails, and the run result shows which strategy found the element and which did not, so you can open the step in the editor and decide what to change.

Why block a step instead of clicking the best guess?

A guessed click can hit the wrong element and still pass, which is worse than a failure. If a strategy points at a different element, or a more trusted locator matches two elements and nothing confirms the winner, Locus clicks nothing and fails the step with a clear reason, such as Ambiguous element or Locators disagree. A failed step is visible in the results. A wrong click may not be.

What does a step wait for? Does it use fixed delays?

Steps wait on conditions, not timers: an element becoming visible, hidden, enabled or disabled, text appearing, the URL changing, a dialog opening or closing, a loading indicator going away, and network activity settling after each action.

This reduces timing failures. It does not promise a flake-free suite.

How do I test pages behind a login without putting a password in the test?

Passwords typed into password fields are not recorded. Credentials a test needs live in a write-only vault for the site, and test steps refer to them by name, such as {{secret_name}}. A sign-in test saves the browser session so later tests in the same run start signed in. Details, including the limits of redaction, are on the security page.

Can it run in CI, or against a staging site on a private network?

Yes, through the customer-run locus-runner. locus-runner run executes the selected test cases, writes a JUnit XML report and exits 0 when everything passed and 1 when anything failed. The runner only makes outbound HTTPS calls, so a staging site behind a VPN or in a private VPC needs no inbound firewall rule. locus-runner record also records flows on your own machine. See the runner page.

What happens if the same flow can end two ways, such as a success page or an error banner?

Record each outcome as its own test case. Locus builds steps and assertions only from what the recording actually observed, so it never adds a check for a screen you did not record.

Can I write my own assertions?

You promote an observation from the recording into an assertion. An assertion runs right after its step's action and waits finish. Nothing becomes an assertion on its own, and there is no free-form check for a state the recording never saw.

Is Locus analytics? Does it watch my real users?

No. Locus records a person on your team using your staging or development app in order to build a test. It is not a way to observe visitors.

Is Locus black-box testing?

Yes, in the usual sense. A Locus test drives your app through the browser, the way a person would, and checks what the page shows and what requests it sends. It does not read or depend on your application's code. Every step and every check comes from something Locus recorded: a click, a page change, a network response.

Your app needs no change: the runner adds the recorder to the pages in its own record window. Because tests only see the app from the outside, they do not replace tests that need to see inside the code, such as unit tests.

Which browsers does it run?

The runner install steps use npx playwright install chromium firefox; recording and replay use Chromium by default and Firefox with --browser firefox. Hosted workers run Chromium or Firefox, but hosted runs are not enabled in the pilot, so pilot tests run through your own runner.

Can I try it?

Locus is in a small, closed pilot with engineering and QA teams. Request access with the form and use a staging site and test accounts, not production data.

Try it on your own staging app.

Locus is opening pilot access to a small group of engineering and QA teams.