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.jpegis available underplaywright/tests/files/ - Browser is on the Clients overview page
Steps¶
- 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.
- Open the client's detail and upload
profilePicture.jpegvia the Upload logo action. Expected: an "updated" confirmation toast appears. - Change the client's title to "New name" and click Save. Expected: another "updated" confirmation toast appears.
- Navigate back to All clients. Expected: the renamed client appears in the list as "New name".
- Open "New name". Expected: the
logoImageContainerimage still matches the originalprofilePicture.jpeg(within 300×200 tolerance) and the logo is visible.
Related¶
- Spec:
playwright/tests/integration/client.spec.ts(line 412)