Skip to content

Search results show highlights (Playwright)

### ✅ Search results show highlights
- **Given** the search index contains "hello world"
- **When** the user searches for "hello"
- **Then** results should include "hello world"
- **And** the matching text should be highlighted
import { test } from '@playwright/test';
import { story } from 'executable-stories-playwright';
test("Search results show highlights", async ({}, testInfo) => {
story.init(testInfo);
story.given('the search index contains "hello world"');
story.when('the user searches for "hello"');
story.then('results should include "hello world"');
story.and("the matching text should be highlighted");
});