---
module: devices.agent-profile
title: Agent Profile
tab: Testing
order: 35
audience: dev
---

Frontend test checklist for **Agent Profile** (Devices › Settings › Agent Profile, `devices.bcos.dev`). Click through in the UI and mark each row Pass or Fail.

## Set up
Log in at **devices.bcos.dev** — test accounts (all password `Passw0rd-d3v!`):

| Login | Role | Sees |
|-------|------|------|
| `bcos_a@bcos.dev` | Admin | All institutions · can add/edit/delete |
| `msp_a@msp1.bcos.dev` | MSP admin | C1 + C2 · can add/edit/delete |
| `customer_a@customer1.bcos.dev` | Customer | C1 · read-only |

> Agent Profiles are **fleet-wide** — they are hardware groupings (e.g. `hyosung`), not per-institution, so every login sees the **same** list. Test devices are the simulators (**C1-ATM-001…**, etc.).

## What to test

| # | Do this | ✅ Pass if |
|---|---------|-----------|
| 1 | As `bcos_a`, open **Devices › Settings › Agent Profile** | Table loads with columns **Key / Label / Description / Modules / Status** and a profile count top-left |
| 2 | Click **+ Add Profile**, set Key `qatest`, Label `QA Test`, then **Add Profile** | Modal closes, green **"Profile added"** shows, and a new `qatest` row appears with an **Active** badge |
| 3 | Click **+ Add Profile**, leave **Label** blank, click **Add Profile** | Red **"Label is required"** inside the modal — modal stays open, nothing is added |
| 4 | Click **+ Add Profile**, enter Key `qatest` again (already exists), submit | A red error appears (key already exists) — **no** duplicate row is created |
| 5 | Click **Edit** on the `qatest` row, change the **Label**, save | **Profile Key** field is greyed/disabled (can't change), green **"Profile updated"**, row shows the new label |
| 6 | Click the **"N modules"** count on any row | The row expands a bulleted list of module names, a **★** marks exclusive ones, and the chevron flips ▼→▲ |
| 7 | Type part of a key or label in **Search profiles…** | List filters live and the count reads **"X of Y profiles"**; clicking the **✕** clears it and shows all again |
| 8 | Click **Delete** on `qatest`, confirm in the dialog | **"Profile deleted"** and the row disappears (deleting a profile still assigned to ATMs instead shows an error and keeps the row — that's expected) |
| 9 | Log in as `customer_a`, open the same screen and try **+ Add Profile → Add Profile** | Either the screen isn't available to you, or the save is **refused with an error** — no new profile is created (customers can't change profiles) |

**Report a fail with:** the row #, which login you used, and what you actually saw.
