Skip to content

Bulk user creation (Rust)

### ✅ Bulk user creation
- **Given** the following users exist
**Users**
| email | role | status |
| ----------------- | ----- | ------ |
| [email protected] | admin | active |
| [email protected] | user | active |
| [email protected] | user | locked |
- **When** the admin opens the user list
- **Then** the user list should include
**Expected**
| email | role | status |
| ----------------- | ----- | ------ |
| [email protected] | admin | active |
| [email protected] | user | active |
| [email protected] | user | locked |
use executable_stories::Story;
#[test]
fn test_bulk_user_creation() {
let mut s = Story::new("Bulk user creation");
s.given("the following users exist");
s.table("Users",
&["email", "role", "status"],
&[
&["[email protected]", "admin", "active"],
&["[email protected]", "user", "active"],
&["[email protected]", "user", "locked"],
],
);
s.when("the admin opens the user list");
s.then("the user list should include");
s.table("Expected",
&["email", "role", "status"],
&[
&["[email protected]", "admin", "active"],
&["[email protected]", "user", "active"],
&["[email protected]", "user", "locked"],
],
);
s.pass();
}