@@ -13,28 +13,6 @@ import type {
1313 TestMetaPlaceholder ,
1414} from './userland' ;
1515
16- /**
17- * The complete report data (for printing report).
18- * @internal
19- */
20- export type ReportData = Readonly < {
21- apiStatistics : ApiStatistics ;
22- customReportProperties : CustomReportPropertiesPlaceholder | undefined ;
23- endE2edReason : EndE2edReason ;
24- endTimeInMs : UtcTimeInMs ;
25- errors : readonly string [ ] ;
26- exitCode : ExitCode ;
27- failedTestsMainParams : readonly string [ ] ;
28- fullTestRuns : readonly FullTestRun [ ] ;
29- liteReportFileName : string | null ;
30- logFileName : string | null ;
31- notIncludedInPackTests : readonly TestFilePath [ ] ;
32- reportFileName : string | null ;
33- retries : readonly Retry [ ] ;
34- startInfo : StartInfo ;
35- summaryPackResults : string ;
36- } > ;
37-
3816/**
3917 * The lite report data (for printing lite JSON report) with userland meta.
4018 */
@@ -61,28 +39,48 @@ export type LiteReport<
6139} > ;
6240
6341/**
64- * RetryButton component props.
65- * @internal
42+ * Lite retry object with all his lite test runs.
6643 */
67- export type RetryButtonProps = Readonly < {
68- disabled : boolean ;
69- retry : number ;
70- selected : boolean ;
44+ export type LiteRetry < TestMeta = TestMetaPlaceholder > = Readonly < {
45+ brokenLiteTestRuns : readonly LiteTestRun < TestMeta > [ ] ;
46+ concurrency : number ;
47+ endTimeInMs : UtcTimeInMs ;
48+ /**
49+ * Test runs of all statuses except broken.
50+ */
51+ liteTestRuns : readonly LiteTestRun < TestMeta > [ ] ;
52+ retryIndex : number ;
53+ startTimeInMs : UtcTimeInMs ;
7154} > ;
7255
7356/**
74- * TestRunButton component props .
57+ * The complete report data (for printing report) .
7558 * @internal
7659 */
77- export type TestRunButtonProps = Readonly < {
60+ export type ReportData = Readonly < {
61+ apiStatistics : ApiStatistics ;
62+ customReportProperties : CustomReportPropertiesPlaceholder | undefined ;
63+ endE2edReason : EndE2edReason ;
7864 endTimeInMs : UtcTimeInMs ;
79- filePath : TestFilePath ;
80- mainParams : string ;
81- name : string ;
82- runHash : RunHash ;
83- runId : RunId ;
84- startTimeInMs : UtcTimeInMs ;
85- status : TestRunStatus ;
65+ errors : readonly string [ ] ;
66+ exitCode : ExitCode ;
67+ failedTestsMainParams : readonly string [ ] ;
68+ fullTestRuns : readonly FullTestRun [ ] ;
69+ liteReportFileName : string | null ;
70+ logFileName : string | null ;
71+ notIncludedInPackTests : readonly TestFilePath [ ] ;
72+ reportFileName : string | null ;
73+ retries : readonly Retry [ ] ;
74+ startInfo : StartInfo ;
75+ summaryPackResults : string ;
76+ } > ;
77+
78+ /**
79+ * The general report data that needed on client for rendering parts of HTML report.
80+ * @internal
81+ */
82+ export type ReportClientData = Readonly < {
83+ apiStatistics : ApiStatistics ;
8684} > ;
8785
8886/**
@@ -96,6 +94,7 @@ export type ReportClientState = {
9694 lengthOfReadedJsonReportDataParts : number ;
9795 readonly pathToScreenshotsDirectoryForReport : string | null ;
9896 readonly readJsonReportDataObservers : MutationObserver [ ] ;
97+ reportClientData ?: ReportClientData ;
9998 testRunDetailsElementsByHash ?: Record < RunHash , HTMLElement > ;
10099} ;
101100
@@ -112,18 +111,13 @@ export type Retry = Readonly<{
112111} > ;
113112
114113/**
115- * Lite retry object with all his lite test runs.
114+ * RetryButton component props.
115+ * @internal
116116 */
117- export type LiteRetry < TestMeta = TestMetaPlaceholder > = Readonly < {
118- brokenLiteTestRuns : readonly LiteTestRun < TestMeta > [ ] ;
119- concurrency : number ;
120- endTimeInMs : UtcTimeInMs ;
121- /**
122- * Test runs of all statuses except broken.
123- */
124- liteTestRuns : readonly LiteTestRun < TestMeta > [ ] ;
125- retryIndex : number ;
126- startTimeInMs : UtcTimeInMs ;
117+ export type RetryButtonProps = Readonly < {
118+ disabled : boolean ;
119+ retry : number ;
120+ selected : boolean ;
127121} > ;
128122
129123/**
@@ -137,3 +131,24 @@ export type RetryProps = Readonly<{
137131 startTimeInMs : UtcTimeInMs ;
138132 testRunButtons : readonly TestRunButtonProps [ ] ;
139133} > ;
134+
135+ /**
136+ * JSON data in `<script>` tags with JSON presentation of report data.
137+ * @internal
138+ */
139+ export type ScriptJsonData = ReportClientData | readonly FullTestRun [ ] ;
140+
141+ /**
142+ * TestRunButton component props.
143+ * @internal
144+ */
145+ export type TestRunButtonProps = Readonly < {
146+ endTimeInMs : UtcTimeInMs ;
147+ filePath : TestFilePath ;
148+ mainParams : string ;
149+ name : string ;
150+ runHash : RunHash ;
151+ runId : RunId ;
152+ startTimeInMs : UtcTimeInMs ;
153+ status : TestRunStatus ;
154+ } > ;
0 commit comments