Skip to content

Create order (Rust)

### ✅ Create order
Tags: `db`, `smoke`
- **Given** the database is seeded
- **And** the API is running
- **When** the client creates an order
- **Then** the response status should be 201
- **And** the order should exist in the database
use executable_stories::Story;
#[test]
fn test_create_order() {
let mut s = Story::new("Create order").with_tags(&["db", "smoke"]);
s.given("the database is seeded");
s.given("the API is running");
s.when("the client creates an order");
s.then("the response status should be 201");
s.then("the order should exist in the database");
s.pass();
}