Skip to content

test(FR-1818): e2e create+purge for bulk CSV user creation#7690

Draft
agatha197 wants to merge 1 commit into
fr-1818-bulk-create-users-from-csvfrom
fr-1818-e2e-create-purge
Draft

test(FR-1818): e2e create+purge for bulk CSV user creation#7690
agatha197 wants to merge 1 commit into
fr-1818-bulk-create-users-from-csvfrom
fr-1818-e2e-create-purge

Conversation

@agatha197
Copy link
Copy Markdown
Contributor

Stacked on #7667 (FR-1818). Merge #7667 first.

What

Adds end-to-end coverage that actually creates users through the Bulk Create Users from CSV modal and then purges them, complementing the existing client-side validation-only spec (bulk-create-from-csv.spec.ts, in the base PR).

The test:

  • uploads an in-memory CSV with unique per-run emails (no fixture file; avoids duplicate-email collisions across runs),
  • clicks Create N users, asserts the Successfully created toast and that the modal closes,
  • verifies the created rows appear in the Active user list,
  • in afterEach, deactivates then permanently purges the created users (reusing the PurgeUsersModal flow from e2e/user/bulk-user-creation.spec.ts) so the suite is repeatable and leaves no residue.

Notes

  • Requires a running Backend.AI cluster (it hits adminBulkCreateUsersV2 and the purge flow).
  • Runs serially (mode: 'serial') since it mutates shared backend state.

🤖 Generated with Claude Code

Adds a Playwright spec that uploads an in-memory CSV with unique per-run
emails, clicks Create N users to actually create them on the backend,
asserts the success toast and that the rows appear in the active user
list, then deactivates and permanently purges the created users in
afterEach (reusing the PurgeUsersModal flow). Complements the existing
validation-only spec. Requires a running Backend.AI cluster.
@github-actions github-actions Bot added the size:L 100~500 LoC label Jun 2, 2026
@agatha197 agatha197 requested review from ironAiken2 and yomybaby June 2, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant