178 — should create two clients and archive one¶
Description¶
Verifies the full archive/unarchive flow for a client: an archived client is hidden from the default list, reappears when the "Show archived" quick-filter is on, is displayed as disabled with an "Archived" marker on its detail page, and can be unarchived back to active state.
Preconditions¶
- Signed-in user inside a freshly registered organization
- Browser is on the Clients overview page
Steps¶
- Create two clients (the generated one and "Client 2" with a distinct code). Expected: both creates show a "created" toast and the list shows 2 clients.
- Click the row-level Archive action on "Client 2" and confirm in the modal. Expected: an "archived" toast appears and the list now shows only 1 client.
- Open the Filters panel and apply the quick filter Show archived. Expected: both clients are listed again and the row for "Client 2" appears disabled.
- Click "Client 2". Expected: the detail page shows the client name "Client 2" and an "Archived" marker.
- Navigate back to All clients, re-apply Show archived, click the row-level Unarchive action on "Client 2" and confirm. Expected: an "unarchived" toast appears.
- Reload and open "Client 2"'s detail. Expected: the list shows 2 clients and the detail page no longer shows the "Archived" marker.
Related¶
- Spec:
playwright/tests/integration/client.spec.ts(line 294)