itemengine-cypress-automation 1.0.50 → 1.0.51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +28 -0
  2. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +30 -0
  3. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsAllOrNothingScoringWithAlternateAnswer.js → Scoring/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js} +5 -7
  4. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsAllOrNothingScoring.js → Scoring/groupedOptionsAllOrNothingScoring.js} +2 -2
  5. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsManualAndNonScoredScoring.js → Scoring/groupedOptionsManualAndNonScoredScoring.js} +2 -2
  6. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialDifferentScorings.js → Scoring/groupedOptionsPartialDifferentWeightsScoring.js} +2 -2
  7. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialDifferrentWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
  8. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialDifferentScoringWithAlternateTab.js → Scoring/groupedOptionsPartialDifferrentWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  9. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialDifferrentWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
  10. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
  11. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialEqualWeightsScoringWithAlternateTab.js → Scoring/groupedOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  12. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
  13. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialEqualWeightsScoring.js → Scoring/groupedOptionsPartialEqualWeightsScorings.js} +2 -2
  14. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +28 -0
  15. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +30 -0
  16. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsAllOrNothingScoringWithAlternateAnswer.js → Scoring/standardOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js} +5 -7
  17. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsAllOrNothingScoring.js → Scoring/standardOptionsAllOrNothingScoring.js} +2 -2
  18. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsManualAndNonScoredScoring.js → Scoring/standardOptionsManualAndNonScoredScoring.js} +2 -2
  19. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
  20. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialDifferentScoringWithAlternateAnswer.js → Scoring/standardOptionsPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  21. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
  22. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialDIfferentScoring.js → Scoring/standardOptionsPartialDifferentWeightsScoring.js} +2 -2
  23. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +29 -0
  24. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialEqualScoringWithAlternateAnswer.js → Scoring/standardOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  25. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +29 -0
  26. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialEqualScoring.js → Scoring/standardOptionsPartialEqualWeightsScoring.js} +2 -2
  27. package/cypress/pages/listMatchingScoring.js +16 -105
  28. package/package.json +1 -1
  29. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
  30. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  31. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  32. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingScoring.js +0 -0
  33. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/manuallyAndNonScoredScoring.js +0 -0
  34. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  35. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
  36. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  37. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsScoring.js +0 -0
  38. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  39. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
  40. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  41. /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsScoring.js +0 -0
  42. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
  43. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  44. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  45. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingScoring.js +0 -0
  46. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/manuallyAndNonScoredScoring.js +0 -0
  47. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  48. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
  49. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  50. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsScoring.js +0 -0
  51. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  52. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
  53. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  54. /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsScoring.js +0 -0
@@ -0,0 +1,28 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - List Matching - grouped options layout - All or nothing scoring with alternate answer - When alternate answer points are more than correct answer points', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer - When alternate answer points are more than correct answer points', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
13
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
14
+ cy.barsPreLoaderWait();
15
+ listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
16
+ listMatchingPage.steps.allotPoints(7);
17
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
18
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
19
+ listMatchingPage.steps.allotPoints(10);
20
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
21
+ listMatchingPage.steps.expandAdditonalSettings();
22
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
23
+ listMatchingPage.steps.switchToPreviewTab();
24
+ });
25
+
26
+ listMatchingScoring.tests.verifyAllOrNothingScoringWithAlternateAnswerWhenAlternatePointsAreMoreThanCorrectPoints();
27
+ });
28
+ });
@@ -0,0 +1,30 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - List Matching - grouped options layout - All or nothing scoring with alternate answer - When Correct Answer points are more than Alternate Answer points', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer - When correct answer points are more than alternate answer points', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
13
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
14
+ cy.barsPreLoaderWait();
15
+ listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
16
+ listMatchingPage.steps.allotPoints(7);
17
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
18
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
19
+ listMatchingPage.steps.allotPoints(7);
20
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
21
+ listMatchingPage.steps.expandAdditonalSettings();
22
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
23
+ listMatchingPage.steps.switchToPreviewTab();
24
+ });
25
+
26
+ listMatchingScoring.tests.verifyAllOrNothingScoringWithAlternateAnswerWhenCorrectPointsAreEqualToAlternatePoints();
27
+
28
+ listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer(7);
29
+ });
30
+ });
@@ -1,12 +1,12 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
- describe('Create Item page - List Matching - grouped options layout - All or nothing scoring with alternate answer', () => {
4
+ describe('Create Item page - List Matching - grouped options layout - All or nothing scoring with alternate answer - When Correct Answer points are more than Alternate Answer points', () => {
5
5
  before(() => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
- describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer', () => {
9
+ describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer - When Correct Answer points are more than Alternate Answer points', () => {
10
10
  abortEarlySetup();
11
11
  before(() => {
12
12
  cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
@@ -23,8 +23,6 @@ describe('Create Item page - List Matching - grouped options layout - All or not
23
23
  listMatchingPage.steps.switchToPreviewTab();
24
24
  });
25
25
 
26
- listMatchingScoring.tests.verifyAutoScoredAllOrNothingScoringWithAlternateAnswer();
27
-
28
- listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer(7);
26
+ listMatchingScoring.tests.verifyAllOrNothingScoringWithAlternateAnswerWhenCorrectPointsAreMoreThanAlternatePoints();
29
27
  });
30
28
  });
@@ -1,5 +1,5 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
4
  describe('Create Item page - List Matching - grouped options layout - All or nothing scoring', () => {
5
5
  before(() => {
@@ -1,5 +1,5 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  const css = Cypress.env('css');
4
4
 
5
5
  describe('Create Item page - List Matching - grouped options layout - Manually scored', () => {
@@ -1,5 +1,5 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
4
  describe('Create Item page - List Matching - grouped options layout - Partial different weights scoring', () => {
5
5
  before(() => {
@@ -0,0 +1,30 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - List Matching - grouped options layout - Partial different weights scoring with alternate answer - When alternate answer points are more than correct answer points', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - Partial different weights grouped options layout with alternate answer - When alternate answer points are more than correct answer points', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial different scoring, adding points and switch to preview tab');
13
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
14
+ cy.barsPreLoaderWait();
15
+ listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
16
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
17
+ listMatchingPage.steps.selectPartialDifferentWeightsCheckbox();
18
+ listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
19
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
20
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
21
+ listMatchingPage.steps.addPartialDifferentWeightsPoints([4, 9, 6, 10]);
22
+ listMatchingPage.steps.uncheckRoundDownScoreCheckbox();
23
+ listMatchingPage.steps.expandAdditonalSettings();
24
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
+ listMatchingPage.steps.switchToPreviewTab();
26
+ });
27
+
28
+ listMatchingScoring.tests.verifyPartialDifferentWeightWithAlternateAnswerWhenAlternatePointsMoreThanCorrectPoints('grouped');
29
+ });
30
+ });
@@ -1,12 +1,12 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
- describe('Create Item page - List Matching - grouped options layout - Partial different weights scoring with alternate answer', () => {
4
+ describe('Create Item page - List Matching - grouped options layout - Partial different weights scoring with alternate answer - When correct answer points are equal to alternate answer points', () => {
5
5
  before(() => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
- describe('Question Preview: AutoScored - Partial different weights grouped options layout with alternate answer', () => {
9
+ describe('Question Preview: AutoScored - Partial different weights grouped options layout with alternate answer - When correct answer points are equal to alternate answer points', () => {
10
10
  abortEarlySetup();
11
11
  before(() => {
12
12
  cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial different scoring, adding points and switch to preview tab');
@@ -18,14 +18,14 @@ describe('Create Item page - List Matching - grouped options layout - Partial di
18
18
  listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
19
19
  listMatchingPage.steps.clickOnAddAlternateAnswerButton();
20
20
  listMatchingPage.steps.setCorrectAnswersForAlternateTab();
21
- listMatchingPage.steps.addPartialDifferentWeightsPoints([3, 9, 2, 6]);
21
+ listMatchingPage.steps.addPartialDifferentWeightsPoints([6, 9, 4, 5]);
22
22
  listMatchingPage.steps.uncheckRoundDownScoreCheckbox();
23
23
  listMatchingPage.steps.expandAdditonalSettings();
24
24
  listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
25
  listMatchingPage.steps.switchToPreviewTab();
26
26
  });
27
27
 
28
- listMatchingScoring.tests.verifyAutoScoredPartialDifferentWeightsScoringWithAlternateAnswer('grouped');
28
+ listMatchingScoring.tests.verifyPartialDifferentWeightWithAlternateAnswerWhenCorrectPointsEqualToAlternatePoints('grouped');
29
29
 
30
30
  listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('24');
31
31
 
@@ -0,0 +1,30 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - List Matching - grouped options layout - Partial different weights scoring with alternate answer - When Correct Answer points are more than Alternate Answer points', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - Partial different weights grouped options layout with alternate answer - When Correct Answer points are more than Alternate Answer points', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial different scoring, adding points and switch to preview tab');
13
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
14
+ cy.barsPreLoaderWait();
15
+ listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
16
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
17
+ listMatchingPage.steps.selectPartialDifferentWeightsCheckbox();
18
+ listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
19
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
20
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
21
+ listMatchingPage.steps.addPartialDifferentWeightsPoints([3, 9, 2, 6]);
22
+ listMatchingPage.steps.uncheckRoundDownScoreCheckbox();
23
+ listMatchingPage.steps.expandAdditonalSettings();
24
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
+ listMatchingPage.steps.switchToPreviewTab();
26
+ });
27
+
28
+ listMatchingScoring.tests.verifyPartialDifferentWeightWithAlternateAnswerWhenCorrectPointsMoreThanAlternatePoints('grouped');
29
+ });
30
+ });
@@ -0,0 +1,30 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+ const css = Cypress.env('css');
4
+
5
+ describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring with alternate answer - When alternate answer points are more than correct answer points', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question Preview: AutoScored - Partial equal weights grouped options layout with alternate answer - When alternate answer points are more than correct answer points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial equal scoring, adding points and switch to preview tab');
14
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
15
+ cy.barsPreLoaderWait();
16
+ listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
17
+ listMatchingPage.steps.selectPartialEqualWeightsCheckbox();
18
+ listMatchingPage.steps.allotPoints(20);
19
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
20
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
21
+ listMatchingPage.steps.allotPoints(24);
22
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
23
+ listMatchingPage.steps.expandAdditonalSettings();
24
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
+ listMatchingPage.steps.switchToPreviewTab();
26
+ });
27
+
28
+ listMatchingScoring.tests.verifyPartialEqualWeightsWithAlternateAnswerWhenAlternatePointsAreMoreThanCorrectPoints('grouped');
29
+ });
30
+ });
@@ -1,13 +1,13 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  const css = Cypress.env('css');
4
4
 
5
- describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring with alternate answer', () => {
5
+ describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring with alternate answer - When correct answer points are equal to alternate answer points', () => {
6
6
  before(() => {
7
7
  cy.loginAs('admin');
8
8
  });
9
9
 
10
- describe('Question Preview: AutoScored - Partial equal weights grouped options layout with alternate answer', () => {
10
+ describe('Question Preview: AutoScored - Partial equal weights grouped options layout with alternate answer - When correct answer points are equal to alternate answer points', () => {
11
11
  abortEarlySetup();
12
12
  before(() => {
13
13
  cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial equal scoring, adding points and switch to preview tab');
@@ -18,14 +18,14 @@ describe('Create Item page - List Matching - standard options layout - Partial e
18
18
  listMatchingPage.steps.allotPoints(20);
19
19
  listMatchingPage.steps.setCorrectAnswersForCorrectTab();
20
20
  listMatchingPage.steps.clickOnAddAlternateAnswerButton();
21
- listMatchingPage.steps.allotPoints(12);
21
+ listMatchingPage.steps.allotPoints(20);
22
22
  listMatchingPage.steps.setCorrectAnswersForAlternateTab();
23
23
  listMatchingPage.steps.expandAdditonalSettings();
24
24
  listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
25
  listMatchingPage.steps.switchToPreviewTab();
26
26
  });
27
27
 
28
- listMatchingScoring.tests.verifyAutoScoredPartialEqualWeightsScoringWithAlternateAnswer('grouped');
28
+ listMatchingScoring.tests.verifyPartialEqualWeightsWithAlternateAnswerWhenCorrectPointsAreEqualToAlternatePoints();
29
29
 
30
30
  listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('20');
31
31
 
@@ -0,0 +1,30 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+ const css = Cypress.env('css');
4
+
5
+ describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring with alternate answer - When correct answer points are more than alternate answer points', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question Preview: AutoScored - Partial equal weights grouped options layout with alternate answer - When correct answer points are more than alternate answer points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial equal scoring, adding points and switch to preview tab');
14
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
15
+ cy.barsPreLoaderWait();
16
+ listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
17
+ listMatchingPage.steps.selectPartialEqualWeightsCheckbox();
18
+ listMatchingPage.steps.allotPoints(20);
19
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
20
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
21
+ listMatchingPage.steps.allotPoints(12);
22
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
23
+ listMatchingPage.steps.expandAdditonalSettings();
24
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
+ listMatchingPage.steps.switchToPreviewTab();
26
+ });
27
+
28
+ listMatchingScoring.tests.verifyPartialEqualWeightsWithAlternateAnswerWhenCorrectPointsAreMoreThanAlternatePoints('grouped');
29
+ });
30
+ });
@@ -1,5 +1,5 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
4
  describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring', () => {
5
5
  before(() => {
@@ -0,0 +1,28 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - List Matching - standard options layout - All or nothing scoring with alternate answer - When alternate answer points are more than correct answer points', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - All or Nothing standard options layout with alternate answer - When alternate answer points are more than correct answer points', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
13
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
14
+ cy.barsPreLoaderWait();
15
+ listMatchingPage.steps.setQuestionStemsAndOptionsForScoringWithAlternateTab();
16
+ listMatchingPage.steps.allotPoints(7);
17
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
18
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
19
+ listMatchingPage.steps.allotPoints(10);
20
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
21
+ listMatchingPage.steps.expandAdditonalSettings();
22
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
23
+ listMatchingPage.steps.switchToPreviewTab();
24
+ });
25
+
26
+ listMatchingScoring.tests.verifyAllOrNothingScoringWithAlternateAnswerWhenAlternatePointsAreMoreThanCorrectPoints();
27
+ });
28
+ });
@@ -0,0 +1,30 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - List Matching - standard options layout - All or nothing scoring with alternate answer - When correct answer points are equal to alternate answer points', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - All or Nothing standard options layout with alternate answer - When correct answer points are equal to alternate answer points', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
13
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
14
+ cy.barsPreLoaderWait();
15
+ listMatchingPage.steps.setQuestionStemsAndOptionsForScoringWithAlternateTab();
16
+ listMatchingPage.steps.allotPoints(7);
17
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
18
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
19
+ listMatchingPage.steps.allotPoints(7);
20
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
21
+ listMatchingPage.steps.expandAdditonalSettings();
22
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
23
+ listMatchingPage.steps.switchToPreviewTab();
24
+ });
25
+
26
+ listMatchingScoring.tests.verifyAllOrNothingScoringWithAlternateAnswerWhenCorrectPointsAreEqualToAlternatePoints();
27
+
28
+ listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('7');
29
+ });
30
+ });
@@ -1,12 +1,12 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
- describe('Create Item page - List Matching - standard options layout - All or nothing scoring with alternate answer', () => {
4
+ describe('Create Item page - List Matching - standard options layout - All or nothing scoring with alternate answer - When correct answer points are more than alternate answer points', () => {
5
5
  before(() => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
- describe('Question Preview: AutoScored - All or Nothing standard options layout with alternate answer', () => {
9
+ describe('Question Preview: AutoScored - All or Nothing standard options layout with alternate answer - When correct answer points are more than alternate answer points', () => {
10
10
  abortEarlySetup();
11
11
  before(() => {
12
12
  cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
@@ -23,8 +23,6 @@ describe('Create Item page - List Matching - standard options layout - All or no
23
23
  listMatchingPage.steps.switchToPreviewTab();
24
24
  });
25
25
 
26
- listMatchingScoring.tests.verifyAutoScoredAllOrNothingScoringWithAlternateAnswer();
27
-
28
- listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('7');
26
+ listMatchingScoring.tests.verifyAllOrNothingScoringWithAlternateAnswerWhenCorrectPointsAreMoreThanAlternatePoints();
29
27
  });
30
28
  });
@@ -1,5 +1,5 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
4
  describe('Create Item page - List Matching - standard options layout - All or nothing scoring', () => {
5
5
  before(() => {
@@ -1,5 +1,5 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  const css = Cypress.env('css');
4
4
 
5
5
  describe('Create Item page - List Matching - standard options layout - Manually scored', () => {
@@ -0,0 +1,30 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - List Matching - standard options layout - Partial different weights scoring with alternate answer - When alternate answer points are more than correct answer points', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - Partial different weights standard options layout with alternate answer - When alternate answer points are more than correct answer points', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial different scoring, adding points and switch to preview tab');
13
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
14
+ cy.barsPreLoaderWait();
15
+ listMatchingPage.steps.setQuestionStemsAndOptionsForScoringWithAlternateTab();
16
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
17
+ listMatchingPage.steps.selectPartialDifferentWeightsCheckbox();
18
+ listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
19
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
20
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
21
+ listMatchingPage.steps.addPartialDifferentWeightsPoints([4, 9, 6, 10]);
22
+ listMatchingPage.steps.uncheckRoundDownScoreCheckbox();
23
+ listMatchingPage.steps.expandAdditonalSettings();
24
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
+ listMatchingPage.steps.switchToPreviewTab();
26
+ });
27
+
28
+ listMatchingScoring.tests.verifyPartialDifferentWeightWithAlternateAnswerWhenAlternatePointsMoreThanCorrectPoints('standard');
29
+ });
30
+ });
@@ -1,12 +1,12 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
- describe('Create Item page - List Matching - standard options layout - Partial different weights scoring with alternate answer', () => {
4
+ describe('Create Item page - List Matching - standard options layout - Partial different weights scoring with alternate answer - When correct answer points are equal to alternate answer points', () => {
5
5
  before(() => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
- describe('Question Preview: AutoScored - Partial different weights standard options layout with alternate answer', () => {
9
+ describe('Question Preview: AutoScored - Partial different weights standard options layout with alternate answer - When correct answer points are equal to alternate answer points', () => {
10
10
  abortEarlySetup();
11
11
  before(() => {
12
12
  cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial different scoring, adding points and switch to preview tab');
@@ -18,14 +18,14 @@ describe('Create Item page - List Matching - standard options layout - Partial d
18
18
  listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
19
19
  listMatchingPage.steps.clickOnAddAlternateAnswerButton();
20
20
  listMatchingPage.steps.setCorrectAnswersForAlternateTab();
21
- listMatchingPage.steps.addPartialDifferentWeightsPoints([3, 9, 2, 6]);
21
+ listMatchingPage.steps.addPartialDifferentWeightsPoints([6, 9, 4, 5]);
22
22
  listMatchingPage.steps.uncheckRoundDownScoreCheckbox();
23
23
  listMatchingPage.steps.expandAdditonalSettings();
24
24
  listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
25
  listMatchingPage.steps.switchToPreviewTab();
26
26
  });
27
27
 
28
- listMatchingScoring.tests.verifyAutoScoredPartialDifferentWeightsScoringWithAlternateAnswer('standard');
28
+ listMatchingScoring.tests.verifyPartialDifferentWeightWithAlternateAnswerWhenCorrectPointsEqualToAlternatePoints('standard');
29
29
 
30
30
  listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('24');
31
31
 
@@ -0,0 +1,30 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - List Matching - standard options layout - Partial different weights scoring with alternate answer - When correct answer points are more than alternate answer points', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - Partial different weights standard options layout with alternate answer - When correct answer points are more than alternate answer points', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial different scoring, adding points and switch to preview tab');
13
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
14
+ cy.barsPreLoaderWait();
15
+ listMatchingPage.steps.setQuestionStemsAndOptionsForScoringWithAlternateTab();
16
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
17
+ listMatchingPage.steps.selectPartialDifferentWeightsCheckbox();
18
+ listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
19
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
20
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
21
+ listMatchingPage.steps.addPartialDifferentWeightsPoints([3, 9, 2, 6]);
22
+ listMatchingPage.steps.uncheckRoundDownScoreCheckbox();
23
+ listMatchingPage.steps.expandAdditonalSettings();
24
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
+ listMatchingPage.steps.switchToPreviewTab();
26
+ });
27
+
28
+ listMatchingScoring.tests.verifyPartialDifferentWeightWithAlternateAnswerWhenCorrectPointsMoreThanAlternatePoints('standard');
29
+ });
30
+ });
@@ -1,5 +1,5 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
4
  describe('Create Item page - List Matching - standard options layout - Partial different weights scoring', () => {
5
5
  before(() => {
@@ -0,0 +1,29 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring with alternate answer - When alternate answer points are more than correct answer points', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - Partial equal weights standard options layout with alternate answer', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial equal scoring, adding points and switch to preview tab');
13
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
14
+ cy.barsPreLoaderWait();
15
+ listMatchingPage.steps.setQuestionStemsAndOptionsForScoringWithAlternateTab();
16
+ listMatchingPage.steps.selectPartialEqualWeightsCheckbox();
17
+ listMatchingPage.steps.allotPoints(20);
18
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
19
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
20
+ listMatchingPage.steps.allotPoints(24);
21
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
22
+ listMatchingPage.steps.expandAdditonalSettings();
23
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
24
+ listMatchingPage.steps.switchToPreviewTab();
25
+ });
26
+
27
+ listMatchingScoring.tests.verifyPartialEqualWeightsWithAlternateAnswerWhenAlternatePointsAreMoreThanCorrectPoints('standard');
28
+ });
29
+ });
@@ -1,12 +1,12 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
- describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring with alternate answer', () => {
4
+ describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring with alternate answer - When correct answer points are equal to alternate answer points', () => {
5
5
  before(() => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
- describe('Question Preview: AutoScored - Partial equal weights standard options layout with alternate answer', () => {
9
+ describe('Question Preview: AutoScored - Partial equal weights standard options layout with alternate answer - When correct answer points are equal to alternate answer points', () => {
10
10
  abortEarlySetup();
11
11
  before(() => {
12
12
  cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial equal scoring, adding points and switch to preview tab');
@@ -17,14 +17,14 @@ describe('Create Item page - List Matching - standard options layout - Partial e
17
17
  listMatchingPage.steps.allotPoints(20);
18
18
  listMatchingPage.steps.setCorrectAnswersForCorrectTab();
19
19
  listMatchingPage.steps.clickOnAddAlternateAnswerButton();
20
- listMatchingPage.steps.allotPoints(12);
20
+ listMatchingPage.steps.allotPoints(20);
21
21
  listMatchingPage.steps.setCorrectAnswersForAlternateTab();
22
22
  listMatchingPage.steps.expandAdditonalSettings();
23
23
  listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
24
24
  listMatchingPage.steps.switchToPreviewTab();
25
25
  });
26
26
 
27
- listMatchingScoring.tests.verifyAutoScoredPartialEqualWeightsScoringWithAlternateAnswer('standard');
27
+ listMatchingScoring.tests.verifyPartialEqualWeightsWithAlternateAnswerWhenCorrectPointsAreEqualToAlternatePoints();
28
28
 
29
29
  listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('20');
30
30
 
@@ -0,0 +1,29 @@
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring with alternate answer - When correct answer points are more than alternate answer points', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: AutoScored - Partial equal weights standard options layout with alternate answer - When correct answer points are more than alternate answer points', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial equal scoring, adding points and switch to preview tab');
13
+ listMatchingPage.steps.navigateToCreateQuestion('list matching');
14
+ cy.barsPreLoaderWait();
15
+ listMatchingPage.steps.setQuestionStemsAndOptionsForScoringWithAlternateTab();
16
+ listMatchingPage.steps.selectPartialEqualWeightsCheckbox();
17
+ listMatchingPage.steps.allotPoints(20);
18
+ listMatchingPage.steps.setCorrectAnswersForCorrectTab();
19
+ listMatchingPage.steps.clickOnAddAlternateAnswerButton();
20
+ listMatchingPage.steps.allotPoints(12);
21
+ listMatchingPage.steps.setCorrectAnswersForAlternateTab();
22
+ listMatchingPage.steps.expandAdditonalSettings();
23
+ listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
24
+ listMatchingPage.steps.switchToPreviewTab();
25
+ });
26
+
27
+ listMatchingScoring.tests.verifyPartialEqualWeightsWithAlternateAnswerWhenCorrectPointsAreMoreThanAlternatePoints('standard');
28
+ });
29
+ });
@@ -1,5 +1,5 @@
1
- import { listMatchingPage, listMatchingScoring } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { listMatchingPage, listMatchingScoring } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
4
  describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring', () => {
5
5
  before(() => {
@@ -187,7 +187,7 @@ const tests = {
187
187
  autoScoredScoringSection.tests.verifyCSSAndA11yOfFullScoreTextAndCorrectAnswerLabel('list matching');
188
188
  },
189
189
 
190
- verifyAutoScoredAllOrNothingScoringWithAlternateAnswer: () => {
190
+ verifyAllOrNothingScoringWithAlternateAnswerWhenCorrectPointsAreMoreThanAlternatePoints: () => {
191
191
  it('Alternate answer case: When Correct answer points are more than alternate answer points', () => {
192
192
  cy.log('The points displayed should be equal to correct answer points')
193
193
  listMatchingPage.previewScoreText()
@@ -351,14 +351,10 @@ const tests = {
351
351
  listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(3);
352
352
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
353
353
  });
354
+ },
354
355
 
356
+ verifyAllOrNothingScoringWithAlternateAnswerWhenAlternatePointsAreMoreThanCorrectPoints: () => {
355
357
  it('Alternate answer case: When Alternate answer points are more than correct answer points', () => {
356
- cy.log('Pre step: Switching to Edit tab and adding Alternate answer points more than correct answer points')
357
- listMatchingPage.steps.switchToEditTab();
358
- listMatchingPage.steps.clearPointsField();
359
- listMatchingPage.steps.allotPoints(10);
360
- listMatchingPage.steps.switchToPreviewTab();
361
-
362
358
  cy.log('Total points displayed besides Show correct answer checkbox should be of Alternate answer')
363
359
  listMatchingPage.previewScoreText()
364
360
  .verifyInnerText('0/10');
@@ -520,7 +516,9 @@ const tests = {
520
516
  listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(3);
521
517
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
522
518
  });
519
+ },
523
520
 
521
+ verifyAllOrNothingScoringWithAlternateAnswerWhenCorrectPointsAreEqualToAlternatePoints: () => {
524
522
  it('Alternate answer case: When Alternate answer points and correct answer points both are equal', () => {
525
523
  cy.log('Pre step: Switching to Edit tab and allotting points of Alternate answer equal to correct answer')
526
524
  listMatchingPage.steps.switchToEditTab();
@@ -891,7 +889,7 @@ const tests = {
891
889
  });
892
890
  },
893
891
 
894
- verifyAutoScoredPartialEqualWeightsScoringWithAlternateAnswer: (optionLayout) => {
892
+ verifyPartialEqualWeightsWithAlternateAnswerWhenCorrectPointsAreMoreThanAlternatePoints: (optionLayout) => {
895
893
  it('Alternate answer case: When Correct Answer points are more than Alternate Answer points', () => {
896
894
  cy.log('Total points displayed besides Show correct answer checkbox should be of Correct Answer points')
897
895
  listMatchingPage.previewScoreText()
@@ -1108,34 +1106,11 @@ const tests = {
1108
1106
  listMatchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
1109
1107
  listMatchingPage.steps.verifyCorrectIncorrectBorderNotExists();
1110
1108
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
1111
-
1112
- cy.log('(Overachiever case) Post-step: Switching to Edit tab and removing unique option responses given for alternate tab, setting proper option responses for the same');
1113
- listMatchingPage.steps.switchToEditTab();
1114
- switch (optionLayout) {
1115
- case 'standard':
1116
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1117
- listMatchingPage.steps.deleteResponseOptionInputField(8);
1118
- break;
1119
- case 'grouped':
1120
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1121
- listMatchingPage.steps.deleteResponseOptionInputField(4);
1122
- break;
1123
- default:
1124
- throw new Error('Invalid option layout');
1125
- }
1126
- listMatchingPage.steps.navigateToAlternateTab(1);
1127
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 1', 0);
1128
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 4', 3);
1129
1109
  });
1110
+ },
1130
1111
 
1112
+ verifyPartialEqualWeightsWithAlternateAnswerWhenAlternatePointsAreMoreThanCorrectPoints: (optionLayout) => {
1131
1113
  it('Alternate answer case: When Alternate Answer points are more than Correct Answer points', () => {
1132
- cy.log('Pre step: Adding Alternate answer points more than correct answer points')
1133
- listMatchingPage.steps.navigateToCorrectTab();
1134
- listMatchingPage.steps.allotPoints(20);
1135
- listMatchingPage.steps.navigateToAlternateTab(1);
1136
- listMatchingPage.steps.allotPoints(24);
1137
- listMatchingPage.steps.switchToPreviewTab();
1138
-
1139
1114
  cy.log('Total points displayed besides Show correct answer checkbox should be of Alternate answer')
1140
1115
  listMatchingPage.previewScoreText()
1141
1116
  .verifyInnerText('0/24');
@@ -1350,32 +1325,12 @@ const tests = {
1350
1325
  listMatchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
1351
1326
  listMatchingPage.steps.verifyCorrectIncorrectBorderNotExists();
1352
1327
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
1353
-
1354
- cy.log('(Overachiever case) Post-step: Switching to Edit tab and removing unique option responses given for correct tab, setting proper option responses for the same');
1355
- listMatchingPage.steps.switchToEditTab();
1356
- switch (optionLayout) {
1357
- case 'standard':
1358
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1359
- listMatchingPage.steps.deleteResponseOptionInputField(8);
1360
- break;
1361
- case 'grouped':
1362
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1363
- listMatchingPage.steps.deleteResponseOptionInputField(4);
1364
- break;
1365
- default:
1366
- throw new Error('Invalid option layout');
1367
- }
1368
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 1', 0);
1369
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 4', 3);
1370
1328
  });
1329
+ },
1371
1330
 
1331
+ verifyPartialEqualWeightsWithAlternateAnswerWhenCorrectPointsAreEqualToAlternatePoints: () => {
1372
1332
  it('Alternate answer case: When Alternate answer points and correct answer points both are equal', () => {
1373
1333
  cy.log('Pre step: Switching to Edit tab and allotting points of Alternate answer equal to correct answer')
1374
- listMatchingPage.steps.allotPoints(20);
1375
- listMatchingPage.steps.navigateToAlternateTab(1);
1376
- listMatchingPage.steps.allotPoints(20);
1377
- listMatchingPage.steps.switchToPreviewTab();
1378
-
1379
1334
  cy.log('Checking total points displayed')
1380
1335
  listMatchingPage.previewScoreText()
1381
1336
  .verifyInnerText('0/20');
@@ -1691,7 +1646,8 @@ const tests = {
1691
1646
  });
1692
1647
  },
1693
1648
 
1694
- verifyAutoScoredPartialDifferentWeightsScoringWithAlternateAnswer: (optionLayout) => {
1649
+ verifyPartialDifferentWeightWithAlternateAnswerWhenCorrectPointsMoreThanAlternatePoints
1650
+ : (optionLayout) => {
1695
1651
  it('Alternate answer case: When Correct Answer points are more than Alternate Answer points', () => {
1696
1652
  cy.log('Total points displayed besides Show correct answer checkbox should be of Correct Answer points')
1697
1653
  listMatchingPage.previewScoreText()
@@ -1933,34 +1889,11 @@ const tests = {
1933
1889
  listMatchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
1934
1890
  listMatchingPage.steps.verifyCorrectIncorrectBorderNotExists();
1935
1891
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
1936
-
1937
- cy.log('(Overachiever case) Post-step: Switching to Edit tab and removing unique option responses given for correct tab, setting proper option responses for the same');
1938
- listMatchingPage.steps.switchToEditTab();
1939
- switch (optionLayout) {
1940
- case 'standard':
1941
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1942
- listMatchingPage.steps.deleteResponseOptionInputField(8);
1943
- break;
1944
- case 'grouped':
1945
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1946
- listMatchingPage.steps.deleteResponseOptionInputField(4);
1947
- break;
1948
- default:
1949
- throw new Error('Invalid option layout');
1950
- }
1951
- listMatchingPage.steps.navigateToAlternateTab(1);
1952
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 1', 0);
1953
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 4', 3);
1954
1892
  });
1893
+ },
1955
1894
 
1895
+ verifyPartialDifferentWeightWithAlternateAnswerWhenAlternatePointsMoreThanCorrectPoints:(optionLayout) => {
1956
1896
  it('Alternate answer case: When Alternate Answer points are more than Correct Answer points', () => {
1957
- cy.log('Pre step: Switching to Edit tab and adding Alternate answer points more than correct answer points')
1958
- listMatchingPage.steps.switchToCorrectTab();
1959
- listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
1960
- listMatchingPage.steps.navigateToAlternateTab(1);
1961
- listMatchingPage.steps.addPartialDifferentWeightsPoints([4, 9, 6, 10]);
1962
- listMatchingPage.steps.switchToPreviewTab();
1963
-
1964
1897
  cy.log('Total points displayed besides Show correct answer checkbox should be of Alternate answer points')
1965
1898
  listMatchingPage.previewScoreText()
1966
1899
  .verifyInnerText('0/29');
@@ -2201,33 +2134,11 @@ const tests = {
2201
2134
  listMatchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
2202
2135
  listMatchingPage.steps.verifyCorrectIncorrectBorderNotExists();
2203
2136
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
2204
-
2205
- cy.log('(Overachiever case) Post-step: Switching to Edit tab and removing unique option responses given for correct tab, setting proper option responses for the same');
2206
- listMatchingPage.steps.switchToEditTab();
2207
- switch (optionLayout) {
2208
- case 'standard':
2209
- listMatchingPage.steps.deleteResponseOptionInputField(9);
2210
- listMatchingPage.steps.deleteResponseOptionInputField(8);
2211
- break;
2212
- case 'grouped':
2213
- listMatchingPage.steps.deleteResponseOptionInputField(9);
2214
- listMatchingPage.steps.deleteResponseOptionInputField(4);
2215
- break;
2216
- default:
2217
- throw new Error('Invalid option layout');
2218
- }
2219
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 1', 0);
2220
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 4', 3);
2221
2137
  });
2138
+ },
2222
2139
 
2140
+ verifyPartialDifferentWeightWithAlternateAnswerWhenCorrectPointsEqualToAlternatePoints:(optionLayout) => {
2223
2141
  it('Alternate answer case: When Alternate answer points and correct answer points both are equal', () => {
2224
- cy.log('Pre step: Switching to Edit tab and allotting points of Alternate answer equal to correct answer')
2225
- listMatchingPage.steps.switchToEditTab();
2226
- listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
2227
- listMatchingPage.steps.navigateToAlternateTab(1);
2228
- listMatchingPage.steps.addPartialDifferentWeightsPoints([6, 9, 4, 5]);
2229
- listMatchingPage.steps.switchToPreviewTab();
2230
-
2231
2142
  cy.log('Checking total points displayed')
2232
2143
  listMatchingPage.previewScoreText()
2233
2144
  .verifyInnerText('0/24');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {