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¶
- Upload
companyLogo.pngas the organization logo. Expected: an "Updated" toast appears. - Fill in Organization Name, Organization Size, Industry = "Architecture", and Source = "Other".
- Click the "Back" button.
- 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. - Click the "Next" button to return to Step 2.
- Expected: the wizard is back on Step 2 of 2 ("Create organization").
- 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".
Related¶
- Spec:
playwright/tests/integration/onboarding.spec.ts(line 184)