itemengine-cypress-automation 1.0.347-TEMRegression4-f9de722.0 → 1.0.348

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.
@@ -5,6 +5,7 @@ describe('Scores API cases', () => {
5
5
  var sessionData = [{}, {}, {}];
6
6
  var timestamp;
7
7
  var dtScoreUpdateArray = [];
8
+
8
9
  let itemReferenceIdNew = "cd2f017-4f0-33b3-062b-ab6150047a83";
9
10
  let dt_score_update;
10
11
  let response_id;
@@ -119,6 +120,11 @@ describe('Scores API cases', () => {
119
120
  });
120
121
 
121
122
  it('If the user clicks on the Scores option from the menu bar, user should be navigated to the Scores API page', () => {
123
+ cy.get('[aria-label="Navigation Drawer List"]')
124
+ .contains('Sessions')
125
+ .click()
126
+ .parents('[class*="MuiListItemButton-gutters"]')
127
+ .should('have.attr', 'aria-expanded', 'true');
122
128
  cy.contains('Scores')
123
129
  .click();
124
130
  cy.contains('Scores')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.347-TEMRegression4-f9de722.0",
3
+ "version": "1.0.348",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,7 +30,7 @@
30
30
  "spinnaker:audioResponse": "node scripts/questions.mjs --env theme=ilc,questionType=AudioResponseNew_VideoResponseNew_UploadResponse_ToolAudioPlayerNew,grepTags=-css+-a11y",
31
31
  "spinnaker:feedbackScale": "node scripts/questions.mjs --env theme=ilc,questionType=FeedbackScaleNew_BrainingCampManipulative_EditItem_ToolSettings,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
- "spinnaker:dataApiTest": "node scripts/questions.mjs --env theme=ilc,questionType=dataApi_Sessions,grepTags=-css+-a11y"
33
+ "spinnaker:dataApiTest": "node scripts/dataApi.mjs --env theme=ilc,questionType=dataApi_Sessions,grepTags=-css+-a11y"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
@@ -52,4 +52,4 @@
52
52
  "devDependencies": {
53
53
  "@applitools/eyes-cypress": "^3.47.0"
54
54
  }
55
- }
55
+ }
@@ -0,0 +1,3 @@
1
+ import { runSorryCypressSpinnakerDataApi } from "./sorry-cypress.mjs";
2
+
3
+ runSorryCypressSpinnakerDataApi();
@@ -204,3 +204,16 @@ export function runSorryCypressQuestions() {
204
204
  console.log(`command: ${command}`);
205
205
  execSync(command, { stdio: "inherit" });
206
206
  }
207
+
208
+ /**
209
+ * @method runSorryCypressSpinnakerDataApi
210
+ */
211
+ export function runSorryCypressSpinnakerDataApi() {
212
+ process.env.CYPRESS_API_URL = "https://cypress-director.imaginelearning.tech/";
213
+ startTime = process.env.START_TIME;
214
+ ciBuildId = setCiBuildId("spinnaker", startTime);
215
+ const envArgs = setCommandLineEnvArgs()
216
+ let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/dataApi/**/*.js,cypress/e2e/Sessions/**/*.js"`;
217
+ console.log(`command: ${command}`);
218
+ execSync(command, { stdio: "inherit" });
219
+ }