Skip to content

182 — should upload logo, change some field and apply, then check logo

Description

Verifies that after uploading a logo and renaming the client, both changes are persisted: the new client name is shown in the list, and the previously uploaded logo image is preserved on the renamed client's detail page.

Preconditions

  • Signed-in user inside a freshly registered organization
  • A test image file profilePicture.jpeg is available under playwright/tests/files/
  • Browser is on the Clients overview page

Steps

  1. Create a client with the generated title and code, then click Create. Expected: a "created" confirmation toast appears and the new client is visible in the list.
  2. Open the client's detail and upload profilePicture.jpeg via the Upload logo action. Expected: an "updated" confirmation toast appears.
  3. Change the client's title to "New name" and click Save. Expected: another "updated" confirmation toast appears.
  4. Navigate back to All clients. Expected: the renamed client appears in the list as "New name".
  5. Open "New name". Expected: the logoImageContainer image still matches the original profilePicture.jpeg (within 300×200 tolerance) and the logo is visible.
  • Spec: playwright/tests/integration/client.spec.ts (line 412)