Skip to content

172 — should create new client with all data

Description

Verifies that a new client can be created with the full set of fields (title, code, start date, labels, client information, billing details) and that every value entered is shown correctly in the clients list and on the client detail page.

Preconditions

  • Signed-in user inside a freshly registered organization
  • Three workspace labels have been pre-created by the API
  • Browser is on the Clients overview page

Steps

  1. Click Add client and enter the client title and code prefix. Expected: the create-client form opens with both required fields filled.
  2. Open the Start date picker and pick a date five days in the past, then attach all three pre-created labels.
  3. Open the Client information section and fill in email, website, type of ownership, number of employees, industry, type of need, change the phone country flag to Czechia, and enter the Czech phone number 777555666.
  4. Open the Billing details section and fill in VAT ID, business ID, country (Czechia), city, street, second line, third line, postcode, state, and additional address details.
  5. Click Create. Expected: a "created" confirmation toast appears.
  6. In the list, show the optional columns code, ownershipType and tags. Expected: the new client row displays the entered title, code, industry, ownership type and all three labels.
  7. Open the client detail. Expected: every field (email, website, ownership type, number of employees, industry, type of need, Czech phone with flag, VAT ID, business ID, country, full address, "Since" date matching the chosen start date, "City, Country" header, client name in header, and all three labels) renders the values entered in steps 1–4.
  • Spec: playwright/tests/integration/client.spec.ts (line 64)