itemengine-cypress-automation 1.0.424-fixForBarsPreLoaderWaitFunction-f05bd8d.0 → 1.0.426-addQuestionTypeNameToExecution-62ea6b6.0
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/package.json +1 -1
- package/scripts/sorry-cypress.mjs +25 -1
package/package.json
CHANGED
|
@@ -32,6 +32,30 @@ const env = process.env.STAGE ? process.env.STAGE : envArgs.fileConfig;
|
|
|
32
32
|
function setCiBuildId(user, startTime) {
|
|
33
33
|
let tags;
|
|
34
34
|
let testType = '[Regression]';
|
|
35
|
+
let questionTypeInfo = '';
|
|
36
|
+
|
|
37
|
+
// Map specific script commands to display names
|
|
38
|
+
const questionTypeDisplayNames = {
|
|
39
|
+
'essayResponse': 'Constructed response',
|
|
40
|
+
'thinkSphereQuestion': 'ThinkSphere',
|
|
41
|
+
'textEntryMath': 'Math response',
|
|
42
|
+
'DNDIntoCategories': 'Drag and drop',
|
|
43
|
+
'multipleSelection': 'Multiple choice selection',
|
|
44
|
+
'graphing': 'Graph and chart',
|
|
45
|
+
'imageHighlight': 'Highlight',
|
|
46
|
+
'listOrdering': 'List',
|
|
47
|
+
'fillInTheGaps': 'Fill in the gaps'
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const npmScript = process.env.npm_lifecycle_event;
|
|
51
|
+
|
|
52
|
+
if (npmScript && npmScript.startsWith('spinnaker:')) {
|
|
53
|
+
const commandName = npmScript.replace('spinnaker:', '');
|
|
54
|
+
|
|
55
|
+
if (questionTypeDisplayNames[commandName]) {
|
|
56
|
+
questionTypeInfo = `[${questionTypeDisplayNames[commandName]}]`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
35
59
|
|
|
36
60
|
if (envArgs.grepUntagged) {
|
|
37
61
|
tags = 'untagged';
|
|
@@ -44,7 +68,7 @@ function setCiBuildId(user, startTime) {
|
|
|
44
68
|
tags = '--';
|
|
45
69
|
}
|
|
46
70
|
|
|
47
|
-
return `${user}${testType}[env:${env}][tags:${tags}][${startTime}]
|
|
71
|
+
return `${user}${testType}${questionTypeInfo}[env:${env}][tags:${tags}][${startTime}]`;
|
|
48
72
|
}
|
|
49
73
|
|
|
50
74
|
function setCommandLineEnvArgs() {
|