User logs in successfully (Rust)
Generated output
Section titled “Generated output”This is what the reporter writes for this scenario:
### ✅ User logs in successfully
- **Given** the user account exists- **And** the user is on the login page- **And** the account is active- **When** the user submits valid credentials- **Then** the user should see the dashboard(First given renders as “Given”; subsequent ones in the same story render as “And”.)
Rust code
Section titled “Rust code”use executable_stories::Story;
#[test]fn test_user_logs_in_successfully() { let mut s = Story::new("User logs in successfully"); s.given("the user account exists"); s.given("the user is on the login page"); s.given("the account is active"); s.when("the user submits valid credentials"); s.then("the user should see the dashboard"); s.pass();}