Skip to content

181 — should upload logo and delete it

Description

Verifies that a JPEG logo can be uploaded to a client, that the rendered image matches the original bytes, and that the logo can later be removed via the delete-logo action.

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. Click Add client, enter the title and code prefix, and click Create. Expected: a "created" confirmation toast appears.
  2. Open the new client's detail and use the Upload logo action, selecting profilePicture.jpeg in the file chooser. Expected: an "updated" confirmation toast appears.
  3. Reload the page. Expected: the logoImageContainer shows an image whose pixels match the uploaded profilePicture.jpeg (within tolerance 300×200), and the logo placeholder is gone.
  4. Click Delete logo. Expected: an "updated" confirmation toast appears.
  5. Reload. Expected: the client no longer displays a logo image.
  • Spec: playwright/tests/integration/client.spec.ts (line 383)