playwright/packages/html-reporter
Anthony Roberts 71c43693ac
feat(reporter): add copy button for annotations (#31790)
Adds a copy-to-clipboard button for each annotation so that text can be
copied easily.
This re-uses the existing `CopyToClipboard` component and adds a `small`
variant that can be used inline. The icon size and colour have been
chosen to avoid being overwhelming when used inline.

Related to #30141 
I opted not to introduce the hover behaviour from #30749 as it's less
discoverable, but can understand why that might be favourable. Certainly
open to suggestions 😄

<img width="379" alt="Screenshot 2024-07-22 at 3 23 53 PM"
src="https://github.com/user-attachments/assets/3b9998cf-2e8d-40c9-9c8a-64eab3a9ed2e">
2024-09-16 07:57:11 -07:00
..
playwright chore: move vite root dir into template folder (#29081) 2024-01-23 09:40:05 -08:00
src feat(reporter): add copy button for annotations (#31790) 2024-09-16 07:57:11 -07: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