itemengine-cypress-automation 1.0.24 → 1.0.25

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.
@@ -34,51 +34,5 @@ describe('Create Item page - Fill in the Gaps: Scoring Section', () => {
34
34
 
35
35
  fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingScoring('fill in the gaps - text');
36
36
  });
37
-
38
- describe('Question Preview: AutoScored - All or Nothing with alternate answer with \'Match from all responses property - \"false\"\'', () => {
39
- abortEarlySetup();
40
- before(() => {
41
- cy.log('Navigate to Fill in the gaps - text question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
42
- fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
43
- fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
44
- fillInTheGapsTextPage.steps.allotPoints(7);
45
- fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
46
- fillInTheGapsTextPage.alternateAnswerButton()
47
- .click();
48
- fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 3', 'Response 4']);
49
- fillInTheGapsTextPage.steps.allotPoints(3);
50
- fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
51
- fillInTheGapsTextPage.steps.expandAdditonalSettings();
52
- fillInTheGapsTextPage.allowStudentsToCheckAnswerCheckbox()
53
- .click();
54
- fillInTheGapsTextPage.steps.switchToPreviewTab();
55
- });
56
-
57
- fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - text')
58
- });
59
-
60
- describe('Question Preview: AutoScored - All or Nothing with alternate answer with \'Match from all responses property - \"true\"\'', () => {
61
- abortEarlySetup();
62
- before(() => {
63
- cy.log('Navigate to Fill in the gaps - text question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring');
64
- fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
65
- fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
66
- fillInTheGapsTextPage.steps.allotPoints(7);
67
- fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
68
- fillInTheGapsTextPage.alternateAnswerButton()
69
- .click();
70
- fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 3', 'Response 4']);
71
- fillInTheGapsTextPage.steps.allotPoints(3);
72
- fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
73
- fillInTheGapsTextPage.matchFromAllResponsesCheckbox()
74
- .click();
75
- fillInTheGapsTextPage.steps.expandAdditonalSettings();
76
- fillInTheGapsTextPage.allowStudentsToCheckAnswerCheckbox()
77
- .click();
78
- fillInTheGapsTextPage.steps.switchToPreviewTab();
79
- });
80
-
81
- fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - text')
82
- });
83
37
  });
84
38
 
@@ -0,0 +1,47 @@
1
+ import { fillInTheGapsScoring } from "../../../pages/fillInTheGapsScoring";
2
+ import { fillInTheGapsTextPage } from "../../../pages/fillInTheGapsTextPage";
3
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
4
+ const css = Cypress.env('css');
5
+
6
+ describe('Fill in the gaps - text: Partial Different scoring', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe('Question Preview: AutoScored - Partial different weights', () => {
12
+ abortEarlySetup();
13
+ before(() => {
14
+ cy.log('Navigate to Fill in the gaps - text question type, fill the necessary details and points, uncheck round down score checkbox and switch to preview tab');
15
+ fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
16
+ fillInTheGapsTextPage.partialDifferentWeightsCheckbox()
17
+ .click();
18
+ fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
19
+ fillInTheGapsTextPage.steps.addPartialDifferentWeightsPoints([5.4, 4.8]);
20
+ fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
21
+ fillInTheGapsTextPage.rounddownScoreCheckbox()
22
+ .click();
23
+ fillInTheGapsTextPage.steps.expandAdditonalSettings();
24
+ fillInTheGapsTextPage.allowStudentsToCheckAnswerCheckbox()
25
+ .click();
26
+ fillInTheGapsTextPage.steps.switchToPreviewTab();
27
+ });
28
+
29
+ fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsScoring('fill in the gaps - text');
30
+ });
31
+
32
+ describe('Partial Different Weights: Round down score', () => {
33
+ abortEarlySetup();
34
+ before(() => {
35
+ cy.log('Add question instructions and options, set correct answers, select partial - different weights scoring and add points (in decimals) for correct answer options');
36
+ fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
37
+ fillInTheGapsTextPage.partialDifferentWeightsCheckbox()
38
+ .click();
39
+ fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
40
+ fillInTheGapsTextPage.steps.addPartialDifferentWeightsPoints([1.36, 2.89]);
41
+ fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
42
+ fillInTheGapsTextPage.steps.switchToPreviewTab();
43
+ });
44
+
45
+ fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsRoundDownScore('fill in the gaps - text');
46
+ });
47
+ });
@@ -7,28 +7,7 @@ describe('Fill in the gaps - text: Partial Different scoring', () => {
7
7
  before(() => {
8
8
  cy.loginAs('admin');
9
9
  });
10
-
11
- describe('Question Preview: AutoScored - Partial different weights', () => {
12
- abortEarlySetup();
13
- before(() => {
14
- cy.log('Navigate to Fill in the gaps - text question type, fill the necessary details and points, uncheck round down score checkbox and switch to preview tab');
15
- fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
16
- fillInTheGapsTextPage.partialDifferentWeightsCheckbox()
17
- .click();
18
- fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
19
- fillInTheGapsTextPage.steps.addPartialDifferentWeightsPoints([5.4, 4.8]);
20
- fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
21
- fillInTheGapsTextPage.rounddownScoreCheckbox()
22
- .click();
23
- fillInTheGapsTextPage.steps.expandAdditonalSettings();
24
- fillInTheGapsTextPage.allowStudentsToCheckAnswerCheckbox()
25
- .click();
26
- fillInTheGapsTextPage.steps.switchToPreviewTab();
27
- });
28
-
29
- fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsScoring('fill in the gaps - text');
30
- });
31
-
10
+
32
11
  describe('Question Preview: AutoScored - Partial different weights with alternate answer with \'Match from all responses - \"false\"', () => {
33
12
  abortEarlySetup();
34
13
  before(() => {
@@ -78,20 +57,4 @@ describe('Fill in the gaps - text: Partial Different scoring', () => {
78
57
 
79
58
  fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - text');
80
59
  });
81
-
82
- describe('Partial Different Weights: Round down score', () => {
83
- abortEarlySetup();
84
- before(() => {
85
- cy.log('Add question instructions and options, set correct answers, select partial - different weights scoring and add points (in decimals) for correct answer options');
86
- fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
87
- fillInTheGapsTextPage.partialDifferentWeightsCheckbox()
88
- .click();
89
- fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
90
- fillInTheGapsTextPage.steps.addPartialDifferentWeightsPoints([1.36, 2.89]);
91
- fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
92
- fillInTheGapsTextPage.steps.switchToPreviewTab();
93
- });
94
-
95
- fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsRoundDownScore('fill in the gaps - text');
96
- });
97
60
  });
@@ -0,0 +1,45 @@
1
+ import { fillInTheGapsScoring, fillInTheGapsTextPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ describe('Fill in the gaps - Text Scoring Section Partial - equal weights', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ })
8
+
9
+ describe('Question Preview Auto Scored: Partial - equal weights', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ cy.log('Navigate to Fill in the gaps - text question type, fill the necessary details and points and switch to preview tab');
13
+ fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
14
+ fillInTheGapsTextPage.steps.addQuestionInstructions();
15
+ fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
16
+ fillInTheGapsTextPage.steps.allotPoints('10');
17
+ fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
18
+ fillInTheGapsTextPage.steps.expandAdditonalSettings();
19
+ fillInTheGapsTextPage.allowStudentsToCheckAnswerCheckbox()
20
+ .click();
21
+ fillInTheGapsTextPage.partialEqualWeightsCheckbox()
22
+ .click();
23
+ fillInTheGapsTextPage.steps.switchToPreviewTab();
24
+ });
25
+
26
+ fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsScoring('fill in the gaps - text')
27
+ });
28
+
29
+ describe('Partial Equal Weights: Round down score', () => {
30
+ abortEarlySetup();
31
+ before(() => {
32
+ cy.log('Add question instructions and options, set correct answers, select partial - equal weights scoring and add points (in decimals) for correct answer options');
33
+ fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
34
+ fillInTheGapsTextPage.steps.addQuestionInstructions();
35
+ fillInTheGapsTextPage.partialEqualWeightsCheckbox()
36
+ .click();
37
+ fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
38
+ fillInTheGapsTextPage.pointsInputField()
39
+ .type('8.5');
40
+ fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
41
+ });
42
+
43
+ fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsRoundDownScore('fill in the gaps - text');
44
+ });
45
+ });
@@ -4,26 +4,6 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
4
4
  describe('Fill in the gaps - Text Scoring Section Partial - equal weights', () => {
5
5
  before(() => {
6
6
  cy.loginAs('admin');
7
- })
8
-
9
- describe('Question Preview Auto Scored: Partial - equal weights', () => {
10
- abortEarlySetup();
11
- before(() => {
12
- cy.log('Navigate to Fill in the gaps - text question type, fill the necessary details and points and switch to preview tab');
13
- fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
14
- fillInTheGapsTextPage.steps.addQuestionInstructions();
15
- fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
16
- fillInTheGapsTextPage.steps.allotPoints('10');
17
- fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
18
- fillInTheGapsTextPage.steps.expandAdditonalSettings();
19
- fillInTheGapsTextPage.allowStudentsToCheckAnswerCheckbox()
20
- .click();
21
- fillInTheGapsTextPage.partialEqualWeightsCheckbox()
22
- .click();
23
- fillInTheGapsTextPage.steps.switchToPreviewTab();
24
- });
25
-
26
- fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsScoring('fill in the gaps - text')
27
7
  });
28
8
 
29
9
  describe('Question preview: Partial - equal weights with alternate answer and match from all responses - \"false\"', () => {
@@ -75,21 +55,4 @@ describe('Fill in the gaps - Text Scoring Section Partial - equal weights', () =
75
55
 
76
56
  fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - text');
77
57
  });
78
-
79
- describe('Partial Equal Weights: Round down score', () => {
80
- abortEarlySetup();
81
- before(() => {
82
- cy.log('Add question instructions and options, set correct answers, select partial - equal weights scoring and add points (in decimals) for correct answer options');
83
- fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
84
- fillInTheGapsTextPage.steps.addQuestionInstructions();
85
- fillInTheGapsTextPage.partialEqualWeightsCheckbox()
86
- .click();
87
- fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
88
- fillInTheGapsTextPage.pointsInputField()
89
- .type('8.5');
90
- fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
91
- });
92
-
93
- fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsRoundDownScore('fill in the gaps - text');
94
- });
95
58
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {