ortoni-report 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Change Log:
2
2
 
3
+ ## Version 2.0.4
4
+
5
+ ### 🚀 New Features
6
+ - **Tags & Annotations**: Added support for tags and annotations, allowing for more detailed reporting and metadata.
7
+ - **Project charts & summary UI**: Enhanced the user interface of project charts and the summary section for better presentation and usability.
8
+
9
+ ### ✨ Improvements
10
+
11
+ - **Snippets color**: Improved the color scheme of code snippets for better readability.
12
+
13
+ ### 🛠 Fixes
14
+ - **Console warning**: Resolved a console warning issue, improving overall stability.
15
+
16
+ ### Documentation
17
+ - **Removed colors package**: Updated documentation to reflect the removal of the `colors` package.
18
+
19
+
20
+ ## Version 2.0.3
21
+
22
+ #### 🚀 New Features
23
+ - **Add screenshot attachment as pagination**: Now supports adding screenshot attachments for easier navigation and pagination.
24
+ - **Bulma Inline CSS**: Integrated Bulma inline CSS for improved styling.
25
+ - **Show card if the count has value**: Cards will now appear only when a valid count is present.
26
+ - **Folder Path**: Introduced a new feature to store the result in the folder path.
27
+
28
+ #### ✨ Improvements
29
+ - **Chart JS as CDN**: Enhanced performance by switching Chart.js to be served via CDN.
30
+ - **Theme icon, navbar & summary icons**: Refined the design of theme icons, navbar, and summary icons for a better user experience.
31
+ - **User meta icons**: Updated and improved the appearance of user meta icons.
32
+ - **Show selected filter on nav-end**: Filters now appear on the nav-end when selected.
33
+ - **Filter logic**: Improved filter functionality by only displaying the filtered items, avoiding the use of the `includes` method.
34
+ - **Logo link to page**: Clicking on the logo now navigates to the corresponding page.
35
+ - **Minor tweaks**: Enhanced overall UI experience
36
+
3
37
  ## Version 2.0.2
4
38
 
5
39
  #### 🚀 New Features
@@ -53,6 +53,16 @@ interface OrtoniReportConfig {
53
53
  * @example "index.html"
54
54
  */
55
55
  filename?: string;
56
+ /**
57
+ * The folder name.
58
+ * @example "playwright-report"
59
+ */
60
+ folderPath?: string;
61
+ /**
62
+ * Port to connect
63
+ * @example 3600
64
+ */
65
+ port?: number;
56
66
  }
57
67
 
58
68
  interface Steps {
@@ -61,7 +71,7 @@ interface Steps {
61
71
  location: string;
62
72
  }
63
73
  interface TestResultData {
64
- suiteTags: string[];
74
+ annotations: any;
65
75
  testTags: string[];
66
76
  location: string;
67
77
  retry: string;
@@ -76,6 +86,7 @@ interface TestResultData {
76
86
  steps: Steps[];
77
87
  logs: string;
78
88
  screenshotPath?: string | null | undefined;
89
+ screenshots?: string[];
79
90
  filePath: string;
80
91
  filters: Set<string>;
81
92
  tracePath?: string;
@@ -84,21 +95,23 @@ interface TestResultData {
84
95
  }
85
96
 
86
97
  declare class OrtoniReport implements Reporter {
98
+ private ansiToHtml;
87
99
  private projectRoot;
88
100
  private results;
89
101
  private groupedResults;
90
102
  private suiteName;
91
103
  private config;
92
104
  private projectSet;
93
- private tagsSet;
105
+ private folderPath;
94
106
  constructor(config?: OrtoniReportConfig);
95
107
  onBegin(config: FullConfig, suite: Suite): void;
96
108
  onTestBegin(test: TestCase, result: TestResult): void;
97
109
  onTestEnd(test: TestCase, result: TestResult): void;
98
110
  private attachFiles;
99
111
  onEnd(result: FullResult): void;
112
+ private registerPartial;
100
113
  private groupResults;
101
- generateHTML(filteredResults: TestResultData[], totalDuration: string): string;
114
+ generateHTML(filteredResults: TestResultData[], totalDuration: string, cssContent: string): string;
102
115
  }
103
116
 
104
117
  export { OrtoniReportConfig, OrtoniReport as default };