itemengine-cypress-automation 1.0.151-28MarchRepoUpdate-20de036.0 → 1.0.152-28th-March-fixes-6236e0e.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
  2. package/cypress/e2e/ILC/EditTabSettingPage/ItemPreviewSettingsTabContent.js +2 -2
  3. package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +25 -25
  4. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +506 -0
  5. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
  6. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +155 -0
  7. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +143 -0
  8. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +1 -1
  9. package/cypress/e2e/ILC/Matching/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
  10. package/cypress/e2e/ILC/Matching/draggableOptions.js +180 -0
  11. package/cypress/e2e/ILC/Matching/editTabScoring.js +221 -0
  12. package/cypress/e2e/ILC/Matching/manuallyAndNonScoredEditTab.js +68 -0
  13. package/cypress/e2e/ILC/Matching/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
  14. package/cypress/e2e/ILC/Matching/switchingCasesBetweenOptionsLayout.js +49 -0
  15. package/cypress/fixtures/theme/ilc.json +7 -1
  16. package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
  17. package/cypress/pages/components/optionsWrapperComponent.js +1 -1
  18. package/cypress/pages/contentBlocksPage.js +30 -1
  19. package/cypress/pages/createItemPage.js +1 -1
  20. package/cypress/pages/essayResponsePage.js +1 -1
  21. package/cypress/pages/graphingPage.js +29 -29
  22. package/cypress/pages/gridFillPage.js +663 -15
  23. package/cypress/pages/itemPreviewSettingsPage.js +3 -3
  24. package/cypress/pages/matchingPage.js +466 -5
  25. package/cypress/pages/shortTextResponsePage.js +1 -0
  26. package/cypress/pages/textEntryMathPage.js +1 -1
  27. package/cypress/pages/textEntryMathWithImagePage.js +1 -1
  28. package/package.json +1 -1
@@ -504,8 +504,8 @@ const steps = {
504
504
  const graphHeight = $graphElement[0].clientHeight;
505
505
  const originX = graphWidth / 2;
506
506
  const originY = graphHeight / 2;
507
- const xPixel = originX + x * (graphWidth / xRange);
508
- const yPixel = originY - y * (graphHeight / yRange);
507
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
508
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
509
509
  graphingPage.graphEditTab()
510
510
  .click(xPixel, yPixel, { force: true });
511
511
  });
@@ -528,9 +528,9 @@ const steps = {
528
528
  const graphHeight = $graphElement[0].clientHeight;
529
529
  const originX = graphWidth / 2;
530
530
  const originY = graphHeight / 2;
531
- const xPixel = originX + x * (graphWidth / xRange);
532
- const yPixel = originY - y * (graphHeight / yRange);
533
- cy.get(`[class*="GraphingWrapper"] .ngie-jxgbox svg ellipse[display="inline"][cx="${xPixel}"][cy="${yPixel}"]`)
531
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
532
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
533
+ cy.get(`[class*="GraphingWrapper"] .ngie-jxgbox svg ellipse[display="inline"][cx*="${xPixel}"][cy*="${yPixel}"]`)
534
534
  .should('be.visible');
535
535
  });
536
536
  });
@@ -552,8 +552,8 @@ const steps = {
552
552
  const graphHeight = $graphElement[0].clientHeight;
553
553
  const originX = graphWidth / 2;
554
554
  const originY = graphHeight / 2;
555
- const xPixel = originX + x * (graphWidth / xRange);
556
- const yPixel = originY - y * (graphHeight / yRange);
555
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
556
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
557
557
  cy.get(`[class*="GraphingWrapper"] .ngie-jxgbox svg ellipse[display="inline"][cx="${xPixel}"][cy="${yPixel}"]`)
558
558
  .should('not.exist');
559
559
  });
@@ -1173,8 +1173,8 @@ const steps = {
1173
1173
  const graphHeight = $graphElement[0].clientHeight;
1174
1174
  const originX = graphWidth / 2;
1175
1175
  const originY = graphHeight / 2;
1176
- const xPixel = originX + x * (graphWidth / xRange);
1177
- const yPixel = originY - y * (graphHeight / yRange);
1176
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
1177
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
1178
1178
  graphingPage.graphSpecifyCorrectAnswerSection()
1179
1179
  .click(xPixel, yPixel, { force: true });
1180
1180
  });
@@ -1197,10 +1197,10 @@ const steps = {
1197
1197
  const graphHeight = $graphElement[0].clientHeight;
1198
1198
  const originX = graphWidth / 2;
1199
1199
  const originY = graphHeight / 2;
1200
- const xPixel = originX + x * (graphWidth / xRange);
1201
- const yPixel = originY - y * (graphHeight / yRange);
1200
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
1201
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
1202
1202
  cy.get(`.MuiAccordion-region .ngie-jxgbox svg ellipse[display="inline"][cx="${xPixel}"][cy="${yPixel}"]`)
1203
- .should('be.visible');
1203
+ .should('exist');
1204
1204
  });
1205
1205
  });
1206
1206
  },
@@ -1221,8 +1221,8 @@ const steps = {
1221
1221
  const graphHeight = $graphElement[0].clientHeight;
1222
1222
  const originX = graphWidth / 2;
1223
1223
  const originY = graphHeight / 2;
1224
- const xPixel = originX + x * (graphWidth / xRange);
1225
- const yPixel = originY - y * (graphHeight / yRange);
1224
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
1225
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
1226
1226
  cy.get(`.MuiAccordion-region .ngie-jxgbox svg ellipse[display="inline"][cx="${xPixel}"][cy="${yPixel}"]`)
1227
1227
  .should('not.exist');
1228
1228
  });
@@ -1400,8 +1400,8 @@ const steps = {
1400
1400
  const graphHeight = $graphElement[0].clientHeight;
1401
1401
  const originX = graphWidth / 2;
1402
1402
  const originY = graphHeight / 2;
1403
- const xPixel = originX + x * (graphWidth / xRange);
1404
- const yPixel = originY - y * (graphHeight / yRange);
1403
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
1404
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
1405
1405
  graphingPage.graphPreviewTab()
1406
1406
  .click(xPixel, yPixel, { force: true });
1407
1407
  });
@@ -1424,10 +1424,10 @@ const steps = {
1424
1424
  const graphHeight = $graphElement[0].clientHeight;
1425
1425
  const originX = graphWidth / 2;
1426
1426
  const originY = graphHeight / 2;
1427
- const xPixel = originX + x * (graphWidth / xRange);
1428
- const yPixel = originY - y * (graphHeight / yRange);
1427
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
1428
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
1429
1429
  cy.get(`[class*="GraphingQuestion"] .ngie-jxgbox svg ellipse[display="inline"][cx="${xPixel}"][cy="${yPixel}"]`)
1430
- .should('be.visible');
1430
+ .should('exist');
1431
1431
  });
1432
1432
  });
1433
1433
  },
@@ -1448,8 +1448,8 @@ const steps = {
1448
1448
  const graphHeight = $graphElement[0].clientHeight;
1449
1449
  const originX = graphWidth / 2;
1450
1450
  const originY = graphHeight / 2;
1451
- const xPixel = originX + x * (graphWidth / xRange);
1452
- const yPixel = originY - y * (graphHeight / yRange);
1451
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
1452
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
1453
1453
  cy.get(`[class*="GraphingQuestion"] .ngie-jxgbox svg ellipse[display="inline"][cx="${xPixel}"][cy="${yPixel}"]`)
1454
1454
  .should('not.exist');
1455
1455
  });
@@ -1472,8 +1472,8 @@ const steps = {
1472
1472
  const graphHeight = $graphElement[0].clientHeight;
1473
1473
  const originX = graphWidth / 2;
1474
1474
  const originY = graphHeight / 2;
1475
- const xPixel = originX + x * (graphWidth / xRange);
1476
- const yPixel = originY - y * (graphHeight / yRange);
1475
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
1476
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
1477
1477
  cy.get(`[class*="GraphingQuestion"] .ngie-jxgbox svg ellipse[display="inline"][cx="${xPixel}"][cy="${yPixel}"]`)
1478
1478
  .should('have.css', 'fill', css.color.incorrectAnswer);
1479
1479
  });
@@ -1496,8 +1496,8 @@ const steps = {
1496
1496
  const graphHeight = $graphElement[0].clientHeight;
1497
1497
  const originX = graphWidth / 2;
1498
1498
  const originY = graphHeight / 2;
1499
- const xPixel = originX + x * (graphWidth / xRange);
1500
- const yPixel = originY - y * (graphHeight / yRange);
1499
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
1500
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
1501
1501
  cy.get(`[class*="GraphingQuestion"] .ngie-jxgbox svg ellipse[display="inline"][cx="${xPixel}"][cy="${yPixel}"]`)
1502
1502
  .should('have.css', 'fill', css.color.correctAnswer);
1503
1503
  });
@@ -1694,8 +1694,8 @@ const steps = {
1694
1694
  const graphHeight = $graphElement[0].clientHeight;
1695
1695
  const originX = graphWidth / 2;
1696
1696
  const originY = graphHeight / 2;
1697
- const xPixel = originX + x * (graphWidth / xRange);
1698
- const yPixel = originY - y * (graphHeight / yRange);
1697
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
1698
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
1699
1699
  cy.get('[class*="GraphingQuestion"] .ngie-jxgbox svg').eq(1).find(`ellipse[display="inline"][cx="${xPixel}"][cy="${yPixel}"]`)
1700
1700
  .should('be.visible');
1701
1701
  });
@@ -1718,8 +1718,8 @@ const steps = {
1718
1718
  const graphHeight = $graphElement[0].clientHeight;
1719
1719
  const originX = graphWidth / 2;
1720
1720
  const originY = graphHeight / 2;
1721
- const xPixel = originX + x * (graphWidth / xRange);
1722
- const yPixel = originY - y * (graphHeight / yRange);
1721
+ const xPixel = originX + x * (graphWidth / (xRange + 1));
1722
+ const yPixel = originY - y * (graphHeight / (yRange + 1));
1723
1723
  cy.get('[class*="GraphingQuestion"] .ngie-jxgbox svg').eq(1).find(`ellipse[display="inline"][cx="${xPixel}"][cy="${yPixel}"]`)
1724
1724
  .should('have.css', 'fill', css.color.correctAnswer);
1725
1725
  });