Skip to content

173 — should fill client information and then delete it

Description

Verifies that the Client information block (email, website, ownership, headcount, industry, type of need, phone) can be saved on a new client and afterwards cleared via the "delete client info" action, leaving the section empty and the phone reset to the default United States flag with prefix +1.

Preconditions

  • Signed-in user inside a freshly registered organization
  • Browser is on the Clients overview page

Steps

  1. Dismiss any unsaved-change recovery modal if it appears.
  2. Click Add client, enter the title and code prefix, then open the Client information section and fill in email, website, type of ownership, number of employees, industry, type of need, change the phone flag to Czechia and enter the Czech phone number 777555666. Click Create. Expected: a "created" confirmation toast appears.
  3. Open the new client's detail. Expected: all client information fields and the Czech phone (with Czechia flag) match what was entered.
  4. Click the Delete client information action and click Save. Expected: an "updated" confirmation toast appears.
  5. Reload the page and open the Client information section again. Expected: email, website, ownership, number of employees, industry and type of need are all empty, and the phone field falls back to the United States flag with prefix +1.
  • Spec: playwright/tests/integration/client.spec.ts (line 139)