itemengine-cypress-automation 1.0.507-dependabot-npm-and-yarn-multi-c7c3a225fc-14033f2.0 → 1.0.507

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.
@@ -1,6 +1,5 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
-
6
- npm run spinnaker:test
1
+ npm run argo-v2
2
+ result=$?
3
+ message="Exiting shell script with exit code: "
4
+ echo $message$result
5
+ exit $result
@@ -8,9 +8,7 @@ global:
8
8
  deployment:
9
9
  activeDeadlineSeconds: 28800
10
10
  architecture: amd64
11
- backoffLimit: 25
12
- completions: 15
13
- parallelism: 15
11
+ backoffLimit: 0
14
12
  restartPolicy: Never
15
13
  image:
16
14
  cmd: /ie-e2e/deploy/test/run.sh
package/il.yaml CHANGED
@@ -28,11 +28,11 @@ otk:
28
28
  # - ./deploy/listOrderingQuestion/service.yaml
29
29
  # - ./deploy/migration/service.yaml
30
30
  # - ./deploy/multipleSelectionQuestion/service.yaml
31
- - ./deploy/resourcesAndToolsQuestion/service.yaml
31
+ # - ./deploy/resourcesAndToolsQuestion/service.yaml
32
32
  # - ./deploy/smoke/service.yaml
33
33
  # - ./deploy/textEntryMathQuestion/service.yaml
34
34
  # - ./deploy/thinkSphere/service.yaml
35
- # - ./deploy/test/service.yaml
35
+ - ./deploy/test/service.yaml
36
36
  deployConfig:
37
37
  environments:
38
38
  - dev
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.507-dependabot-npm-and-yarn-multi-c7c3a225fc-14033f2.0",
3
+ "version": "1.0.507",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,8 @@
31
31
  "spinnaker:feedbackScale": "node scripts/questions.mjs --env theme=ilc,questionType=FeedbackScaleNew_BrainingCampManipulative_EditItem_ToolSettings_CkEditorAudioPlayer_CkEditorEquationEditor_CkEditorInsertImage_CkEditorInsertTable_CkEditorInsertTable,grepTags=-css+-a11y",
32
32
  "spinnaker:resourcesAndTools": "node scripts/questions.mjs --env theme=ilc,questionType=Compass_ContentBlocks_Protractor_ReadingRuler_SimpleCalculator_Ruler,grepTags=-css+-a11y",
33
33
  "spinnaker:dataApiTest": "node scripts/dataApi.mjs --env theme=ilc,questionType=dataApi_Sessions,grepTags=-css+-a11y",
34
- "spinnaker:test": "node scripts/testcypress.mjs --env theme=ilc,questionType=test_Sessions,grepTags=-css+-a11y"
34
+ "spinnaker:test": "node scripts/testcypress.mjs --env theme=ilc,questionType=test_Sessions,grepTags=-css+-a11y",
35
+ "argo-v2": "node scripts/testcypress.mjs --env theme=ilc,questionType=test_Sessions,grepTags=-css+-a11y"
35
36
  },
36
37
  "repository": {
37
38
  "type": "git",
@@ -42,7 +43,7 @@
42
43
  "axe-core": "^4.7.1",
43
44
  "cy-verify-downloads": "^0.1.11",
44
45
  "cy2": "^4.0.9",
45
- "cypress": "^15.2.0",
46
+ "cypress": "^12.17.2",
46
47
  "cypress-axe": "^1.4.0",
47
48
  "cypress-file-upload": "^5.0.8",
48
49
  "cypress-real-events": "^1.7.6",
@@ -304,11 +304,15 @@ export function runSorryCypressSpinnakerDataApi() {
304
304
  }
305
305
 
306
306
  export function runSorryCypressTest() {
307
+ console.log('Inside runSorryCypressSpinnaker');
307
308
  process.env.CYPRESS_API_URL = "https://cypress-director.imaginelearning.tech/";
308
- const user = OS.userInfo().username;
309
- startTime = Math.round(Date.now() / 1000000);
310
- ciBuildId = setCiBuildId(user, startTime);
309
+ console.log('CYPRESS_API_URL:', process.env.CYPRESS_API_URL);
310
+ startTime = process.env.START_TIME;
311
+ console.log('START_TIME:', startTime);
312
+ ciBuildId = setCiBuildId("spinnaker", startTime);
313
+ console.log('ciBuildId:', ciBuildId);
311
314
  const envArgs = setCommandLineEnvArgs()
315
+ console.log('envArgs:', envArgs);
312
316
  let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/test/**/*.js"`;
313
317
  console.log(`command: ${command}`);
314
318
  execSync(command, { stdio: "inherit" });