Skip to main content
ui-driver renders UI flows in a headless Chromium browser. It runs UI flow test cases for Integration Designer and renders screens for the Developer Agentic Harness. It is part of the devtime group of the flowx-ai Helm chart, and the chart deploys it with test runs off.

Before you start

Test runs act for the maker through the ui-driver service account. ui-driver accepts a test run only from a caller that sends a token with the SA_FLOWX role, such as Integration Designer. It plays the run as the flowx-ui-driver-sa service account, on behalf of the maker who started the test. Render requests also need a token, and ui-driver uses that token for its calls to the platform.Also apply the network policy in Restrict who can reach ui-driver, so that only the services that call ui-driver can reach it.
You need:
  • The flowx-ai Helm chart, with the devtime group turned on: groups.devtime.enabled: true
  • MongoDB, reachable from the cluster
  • The flowx-ui-driver-sa client in Keycloak. See ui-driver service account
  • Recommended: a Kubernetes network plugin that enforces NetworkPolicy

Turn on test runs

1

Create the MongoDB user and database

Create a MongoDB user named ui-driver with the readWrite role on a database named ui-driver. Store its password in a Kubernetes secret named mongodb-ui-driver-ui-driver, under the key password.ui-driver keeps queued test runs in this database, in the ui_driver_test_jobs collection.
2

Check the service account

ui-driver signs in with the flowx-ui-driver-sa client, a confidential client with service accounts on and the SA_FLOWX realm role. Authorization System creates it when it has Keycloak admin access and the service-accounts realm exists. Otherwise, create it yourself. See ui-driver service account.Its secret is the KEYCLOAK_UI_DRIVER_CLIENT_SECRET key of the keycloak-flowx-realm-clients secret.
The chart reads KEYCLOAK_UI_DRIVER_CLIENT_SECRET in the authorization-system pod even when the devtime group is off, so add the key on upgrade either way. See New secret key: ui-driver service account.
3

Select the service account and the database

Keep the ai_render alias: ui-driver reads its database connection under that name. The flowx server and the uiDriver credentials and client are defined in the chart. See How does a service connect to a dependency?Set both together. With the database and no service account, ui-driver stops at startup.
4

Point ui-driver at your platform

Set the two URLs a test run loads the UI flow from. Both must be reachable from the ui-driver pod.
Use the same values as the Designer’s BASE_API_URL and STATIC_ASSETS_PATH. See Designer setup. The chart has no default for AI_RENDER_STATIC_ASSETS_PATH, and without it ui-driver refuses every test run.
5

Restrict who can reach ui-driver

Recommended: apply the network policy in Restrict who can reach ui-driver in the same release.

ui-driver configuration

The chart sets the service account and database variables (KEYCLOAK_SA_*, AI_RENDER_MONGODB_*) from the values in step 3. Don’t set them by hand.

Caller check

ui-driver checks the token of each caller that submits or cancels a test run. The token must be signed with RS256, come from the expected issuer and audience, and carry the SA_FLOWX role in realm_access.roles. A caller without a valid token gets 401, and one without the role gets 403. With Keycloak, ui-driver checks tokens against your service accounts realm and needs no extra setting. With another identity provider, set all three variables, and check that its tokens meet the requirements above before you turn on test runs: If you override FLOWX_LIB_CASCLIENT_IMPERSONATION_IMPERSONATINGCLIENTS on Application Manager, keep flowx-ui-driver-sa in the list, so test runs read Media Library files with the maker’s project permissions.

Integration Designer configuration

Integration Designer sends each test case to ui-driver over the cluster network. Change it, and AI_RENDER_CALLBACK_BASE_URL on ui-driver, only if the two services don’t reach each other under their default service names.

Restrict who can reach ui-driver

As defense in depth, let only Integration Designer, and the harness if you use it, connect to ui-driver. Render a NetworkPolicy for ui-driver that admits only pods labeled ui-driver-client: "true", and add that label to the services that call it:
Leave the ui-driver ingress off and its service as ClusterIP, as the chart deploys it. For the other NetworkPolicy settings, see How do I restrict network traffic to a service?

Harness renders

The Developer Agentic Harness renders the screens it builds through ui-driver and uses the same platform URLs. Set them on the harness to the values you gave ui-driver: Without these, the harness still starts, but saves its edits without rendering them first.

Verify your setup

kubectl port-forward svc/ui-driver 8080:80, then curl localhost:8080/health, returns 200 with "jobs": {"enabled": true, "mongo": true, ...}. With test runs off, jobs is {"enabled": false}.
kubectl get networkpolicy ui-driver lists the policy, and the integration-designer pods carry the ui-driver-client=true label.
In the Designer, a UI flow test case runs to a result with screenshots. See Run UI flow test cases.

Troubleshooting

Symptoms: The pod restarts and the log says test jobs need the service account or test runs on.Solutions:
  1. Check that idpClients: ["uiDriver"] is set together with the uiDriver database
  2. Check that AI_RENDER_TEST_CONCURRENCY is greater than 0
Symptoms: Test runs fail at once with an error that a run with the service account needs a setting.Solutions:
  1. Set AI_RENDER_STATIC_ASSETS_PATH and AI_RENDER_API_URL on ui-driver
  2. Check that both URLs are reachable from the ui-driver pod
Symptoms: UI flow test cases stay in progress until they time out.Solutions:
  1. Check that the integration-designer pods carry the ui-driver-client: "true" label, so the network policy lets them reach ui-driver
  2. Check that ui-driver reaches Integration Designer at AI_RENDER_CALLBACK_BASE_URL
  3. Check that GET /health on ui-driver shows "mongo": true

UI flow test cases

Create and run UI flow test cases in the Designer

ui-driver service account

Create the flowx-ui-driver-sa client

Configure the FlowX Helm chart

Service groups, dependencies and network policies

Integration Designer setup

Integration Designer configuration
Last modified on December 1, 2026