playwright/packages/html-reporter/src
Simon Knott 99724d0322
refactor(ui): some react refactorings (#31900)
Addresses https://github.com/microsoft/playwright/issues/31863. This PR
is chonky, but the individual commits should be easy to review. If
they're not, i'm happy to break them out into individual PRs.

There's two main things this does:

1. Remove some unused imports
2. Add a `clsx`-inspired helper function for classname templating

I wasn't able to replace `ReactDOM.render` with `ReactDOM.createRoot`.
This is the new recommended way starting with React 18, and the existing
one is going to be deprecated at some point. But it somehow breaks our
tests, i'll have to investigate that separately.
2024-07-31 12:12:06 +02:00
..
chip.css chore: include start/endTime and duration in onEnd report callback (#26760) 2023-08-29 10:56:21 -07:00
chip.spec.tsx chore: do not use docker for "Web Components" tests (#20339) 2023-01-24 14:00:10 -08:00
chip.tsx refactor(ui): some react refactorings (#31900) 2024-07-31 12:12:06 +02:00
colors.css chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
common.css chore: support dark theme in recorder & tv (#18389) 2022-10-27 16:50:41 -07:00
copyToClipboard.css feat(html): "copy to clipboard" for text attachments (#27556) 2023-10-11 17:56:05 -07:00
copyToClipboard.tsx feat(html): "copy to clipboard" for text attachments (#27556) 2023-10-11 17:56:05 -07:00
DEPS.list chore: ensure module deps in ct-core (#24056) 2023-07-06 12:01:45 -07:00
filter.ts feat(html): filter test cases by annotation text in HTML report (#30751) 2024-05-24 13:12:16 -07:00
headerView.css chore: revert sharded html report (#20923) 2023-02-15 12:38:03 -08:00
headerView.spec.tsx feat(html): filter test cases by annotation text in HTML report (#30751) 2024-05-24 13:12:16 -07:00
headerView.tsx feat(html): allow ctrl+clicking status (#30556) 2024-04-26 10:50:20 -07:00
icons.tsx chore: enforce single quotes in JSX (#31855) 2024-07-25 13:06:26 +02:00
images.ts chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
index.tsx feat(html-reporter): add Playwright logo as Favicon (#31908) 2024-07-30 12:02:06 +02:00
links.css feat(html): "copy to clipboard" for text attachments (#27556) 2023-10-11 17:56:05 -07:00
links.tsx refactor(ui): some react refactorings (#31900) 2024-07-31 12:12:06 +02:00
loadedReport.ts chore: revert sharded html report (#20923) 2023-02-15 12:38:03 -08:00
metadataView.tsx feat(html): show top-level errors (#27763) 2023-10-24 09:35:07 -07:00
renderUtils.tsx chore: linkify urls in attachments body (#31673) 2024-07-15 12:20:22 -07:00
reportView.css chore(html-report): follow up ui fixes (#15599) 2022-07-13 12:49:11 -07:00
reportView.tsx chore: use original test ids in html report (#30486) 2024-04-23 14:28:27 -07:00
statusIcon.tsx feat(test runner): separate interrupted status from skipped (#16124) 2022-08-02 12:55:43 -07:00
tabbedPane.css chore: fix file view padding (#23166) 2023-05-19 11:07:49 -07:00
tabbedPane.tsx refactor(ui): some react refactorings (#31900) 2024-07-31 12:12:06 +02:00
testCaseView.css chore: fix file view padding (#23166) 2023-05-19 11:07:49 -07:00
testCaseView.spec.tsx refactor(ui): some react refactorings (#31900) 2024-07-31 12:12:06 +02:00
testCaseView.tsx refactor(ui): some react refactorings (#31900) 2024-07-31 12:12:06 +02:00
testErrorView.css feat(html): show top-level errors (#27763) 2023-10-24 09:35:07 -07:00
testErrorView.tsx feat(html): show top-level errors (#27763) 2023-10-24 09:35:07 -07:00
testFilesView.tsx chore: enforce single quotes in JSX (#31855) 2024-07-25 13:06:26 +02:00
testFileView.css feat(html): added labels to test cases and test files (#21468) 2023-03-22 14:35:58 -07:00
testFileView.tsx refactor(ui): some react refactorings (#31900) 2024-07-31 12:12:06 +02:00
testResultView.css chore: reuse image diff component in trace/html (#28727) 2023-12-22 10:17:35 -08:00
testResultView.tsx chore: linkify urls in attachments body (#31673) 2024-07-15 12:20:22 -07:00
theme.css test: add component tests for html report (#10900) 2021-12-13 18:30:48 -08:00
treeItem.css chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
treeItem.tsx chore: allow multiple image diffs (#13202) 2022-03-31 14:11:34 -07:00
types.ts Revert "feat(test): add URL field to annotations for hyperlink disp… (#31259) 2024-06-11 16:05:21 -07:00
utils.ts chore: linkify urls in attachments body (#31673) 2024-07-15 12:20:22 -07:00
vite-env.d.ts chore: migrate html reporter to vite (#13116) 2022-03-28 18:21:19 -07:00