Skip to content

Login works

Tag a scenario at init so readers can filter the report by smoke or auth.

import { story } from 'executable-stories-vitest';
import { it } from 'vitest';
it("Login works", ({ task }) => {
story.init(task, { tags: ["smoke", "auth"] });
story.given("the user is on the login page");
story.when("the user logs in with valid credentials");
story.then("the user should be logged in");
});
### ✅ Login works
Tags: `smoke`, `auth`
- **Given** the user is on the login page
- **When** the user logs in with valid credentials
- **Then** the user should be logged in