playwright/packages/html-reporter
Simon Knott 1b457b1ff8
fix(html reporter): render annotation newlines (#32948)
Closes https://github.com/microsoft/playwright/issues/32925. Before this
change, newlines in annotation descriptions weren't respected. This
change makes them shown. Here's how it looks for this annotation:

```ts
test.info().annotations.push({
  type: 'user story',
  description: '\n- user goes to the page\n- user clicks the button\n- user sees the result',
});
```

Before:

<img width="1071" alt="Screenshot 2024-10-04 at 09 55 15"
src="https://github.com/user-attachments/assets/89e74ff5-ea83-48da-a33b-833423916d95">

After:

<img width="1031" alt="Screenshot 2024-10-04 at 09 51 08"
src="https://github.com/user-attachments/assets/0f2914e8-bd88-4970-aa68-6a5a9828295c">
2024-10-04 14:18:38 +02:00
..
playwright chore: move vite root dir into template folder (#29081) 2024-01-23 09:40:05 -08:00
src fix(html reporter): render annotation newlines (#32948) 2024-10-04 14:18:38 +02:00
.gitignore clean: speed up ct (#13915) 2022-05-03 21:25:50 -07:00
bundle.ts chore: less 'as any' in html-reporter (#32117) 2024-08-12 15:17:42 +02:00
index.html chore: migrate html reporter to vite (#13116) 2022-03-28 18:21:19 -07:00
package.json chore: address deprecated Vite warnings (#31618) 2024-07-10 22:32:08 +02:00
playwright.config.ts chore: address deprecated Vite warnings (#31618) 2024-07-10 22:32:08 +02:00
tsconfig.json fix: tolerate wrongly-typed annotations (#29162) 2024-01-25 11:35:17 -08:00
tsconfig.node.json chore: address deprecated Vite warnings (#31618) 2024-07-10 22:32:08 +02:00
vite.config.ts chore: fix build/watch script for bundles and vite-powered packages (#20055) 2023-01-11 18:36:04 -08:00