Skip to content

357 — should upload org image and finish onboarding

Description

Verifies the happy-path completion of onboarding: uploading an organization logo, filling all organization fields, and finishing — then confirming the new organization is created with the correct name and logo, and the header avatar shows the user's profile picture.

Preconditions

  • A freshly registered and email-verified user account that has not yet completed onboarding.
  • The user has already completed Step 1: name filled in, profile avatar (profilePicture.jpeg) uploaded, language set to English, and has advanced to Step 2 of 2 ("Create organization").

Steps

  1. Upload companyLogo.png as the organization logo. Expected: an "Updated" toast appears and the logo preview matches the original file.
  2. Fill in Organization Name with a generated company name, Organization Size with a value from the predefined list, Industry = "Architecture", and Source = "Other".
  3. Expected: all four fields display the values just entered.
  4. Click the "Finish" button and wait for the new workspace to finish loading (the app shows a "creating demo data" loader for several seconds).
  5. Expected: the page header now displays the uploaded profilePicture.jpeg as the user's avatar.
  6. Open Organization Settings.
  7. Expected: the Organization Title shows the company name entered in step 2.
  8. Expected: the organization logo image on the settings page matches the original companyLogo.png file.
  • Spec: playwright/tests/integration/onboarding.spec.ts (line 151)