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.jpegis available underplaywright/tests/files/ - Browser is on the Clients overview page
Steps¶
- Click Add client, enter the title and code prefix, and click Create. Expected: a "created" confirmation toast appears.
- Open the new client's detail and use the Upload logo action, selecting
profilePicture.jpegin the file chooser. Expected: an "updated" confirmation toast appears. - Reload the page. Expected: the
logoImageContainershows an image whose pixels match the uploadedprofilePicture.jpeg(within tolerance 300×200), and the logo placeholder is gone. - Click Delete logo. Expected: an "updated" confirmation toast appears.
- Reload. Expected: the client no longer displays a logo image.
Related¶
- Spec:
playwright/tests/integration/client.spec.ts(line 383)