@@ -12,8 +12,8 @@ const { ansiRegExp, base64EncodeFile, markdownToAnsi } = require('../utils')
1212const MAX_DATA_LENGTH = 5000
1313
1414const defaultConfig = {
15- clusterize : 2 ,
16- analyze : 3 ,
15+ clusterize : 5 ,
16+ analyze : 2 ,
1717 vision : false ,
1818 categories : [
1919 'Browser connection error / browser crash' ,
@@ -64,17 +64,18 @@ const defaultConfig = {
6464 If you identify that all tests in the group have the same tag, add this tag to the group report, otherwise ignore TAG section.
6565 If you identify that all tests in the group have the same suite, add this suite to the group report, otherwise ignore SUITE section.
6666 Pick different emojis for each group.
67- Do not include group into report if it has only one test in affected tests section.
67+ Order groups by the number of tests in the group.
68+ If group has one test, skip that group.
6869
6970 Provide list of groups in following format:
7071
7172 _______________________________
7273
73- ## Group <group_number>
74+ ## Group <group_number> <emoji>
7475
76+ * SUMMARY <summary_of_errors>
7577 * CATEGORY <category_of_failure>
7678 * ERROR <error_message_1>, <error_message_2>, ...
77- * SUMMARY <summary_of_errors>
7879 * STEP <step_of_failure> (use CodeceptJS format I.click(), I.see(), etc; if all failures happend on the same step)
7980 * SUITE <suite_title>, <suite_title> (if SUITE is present, and if all tests in the group have the same suite or suites)
8081 * TAG <tag> (if TAG is present, and if all tests in the group have the same tag)
@@ -126,14 +127,16 @@ const defaultConfig = {
126127 Do not get to details, be concise.
127128 If there is failed step, just write it in STEPS section.
128129 If you have suggestions for the test, write them in SUMMARY section.
130+ Do not be too technical in SUMMARY section.
129131 Inside SUMMARY write exact values, if you have suggestions, explain which information you used to suggest.
130132 Be concise, each section should not take more than one sentence.
131133
132134 Response format:
133135
136+ * SUMMARY <explanation_of_failure>
137+ * ERROR <error_message_1>, <error_message_2>, ...
134138 * CATEGORY <category_of_failure>
135139 * STEPS <step_of_failure>
136- * SUMMARY <explanation_of_failure>
137140
138141 Do not add any other sections or explanations. Only CATEGORY, SUMMARY, STEPS.
139142 ${ config . vision ? 'Also a screenshot of the page is attached to the prompt.' : '' }
@@ -153,11 +156,6 @@ const defaultConfig = {
153156 } )
154157 }
155158
156- messages . push ( {
157- role : 'assistant' ,
158- content : `## ` ,
159- } )
160-
161159 return messages
162160 } ,
163161 } ,
0 commit comments