Skip to content

358 — should upload org image, fill fields, and then go back and check again

Description

Verifies that navigating Back from the Create Organization step preserves the personal-info entered on Step 1, but resets the organization form (logo, name, industry, source) when the user returns to Step 2 — except for Organization Size, which falls back to the default "1-10 employees".

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.
  2. Fill in Organization Name, Organization Size, Industry = "Architecture", and Source = "Other".
  3. Click the "Back" button.
  4. Expected: the wizard returns to Step 1 of 2 ("Set personal info") with First Name, Last Name, language ("English"), and profile avatar (profilePicture.jpeg) all still populated from before.
  5. Click the "Next" button to return to Step 2.
  6. Expected: the wizard is back on Step 2 of 2 ("Create organization").
  7. Expected: the organization form has been cleared — Organization Name is empty, Industry is empty, Source is empty, the organization logo slot is empty, and Organization Size has reset to its default "1-10 employees".
  • Spec: playwright/tests/integration/onboarding.spec.ts (line 184)