import { test } from '@playwright/test'; export function epic(name: string) { return test.info().annotations.push({ type: 'epic', description: name }); } export function feature(name: string) { return test.info().annotations.push({ type: 'feature', description: name }); } export function story(name: string) { return test.info().annotations.push({ type: 'story', description: name }); } export function severity(level: 'blocker' | 'critical' | 'normal' | 'minor' | 'trivial') { return test.info().annotations.push({ type: 'severity', description: level }); } export function tag(...tags: string[]) { tags.forEach(t => test.info().annotations.push({ type: 'tag', description: t })); } export function description(text: string) { return test.info().annotations.push({ type: 'description', description: text }); } export function step(name: string, body: () => Promise): Promise { return test.step(name, body); }