itemengine-cypress-automation 1.0.32 → 1.0.37
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ListMatching/listMatchingAdditionalSettingsAnswerNumerationAndResponseOptionPlacement.js +196 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingAdditionalSettingsBasic.js +210 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingAdditionalSettingsStemAndResponseColumnHeader.js +206 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingAlternateAnswer.js +193 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingClickAndDrop.js +644 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingEditTabScoringTypes.js +105 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsAllOrNothingScoring.js +117 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsAllOrNothingScoringWithAlternateAnswer.js +30 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsManualAndNonScoredScoring.js +49 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsPartialDifferentScoringWithAlternateTab.js +36 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsPartialDifferentScorings.js +49 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsPartialEqualWeightsScoring.js +48 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsPartialEqualWeightsScoringWithAlternateTab.js +36 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSection.js +207 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSetCorrectAnswersCheckboxesEditTab.js +139 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSetCorrectAnswersCheckboxesPreviewTab.js +227 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingHeaderSection.js +95 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingQuestionInstructionsAndStemsSection.js +246 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingScoringSectionBasic.js +21 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingSetCorrectAnswerSectionBasic.js +40 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsAllOrNothingScoring.js +113 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsAllOrNothingScoringWithAlternateAnswer.js +30 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsManualAndNonScoredScoring.js +48 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsPartialDIfferentScoring.js +49 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsPartialDifferentScoringWithAlternateAnswer.js +36 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsPartialEqualScoring.js +48 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsPartialEqualScoringWithAlternateAnswer.js +35 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSection.js +233 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesEditTab.js +113 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesPreviewTab.js +185 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingSwitchingCases.js +47 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsAnswerNumerationAndOptionLabel.js +295 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsBasic.js +300 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsOptionStyleDropdown.js +302 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsSetPointsPopup.js +273 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAllOrNothingScoring.js +178 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAllOrNothingScoringWithAlternateAnswer.js +712 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingEditTabBasicSection.js +316 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingEditTabScoringSection.js +256 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingHeaderSection.js +83 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingManuallyAndNonScoredScoring.js +160 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingPartialDifferentWeightsScoring.js +191 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingPartialDifferentWeightsScoringWithAlternateAnswer.js +895 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingPartialEqualWeightsScoring.js +191 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingPartialEqualWeightsScoringWithAlternateAnswer.js +807 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingSetCorrectAnswerCheckboxes.js +208 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingSetCorrectAnswerSection.js +172 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettings.js +820 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettingsAnswerNumerationAndOptionStyleDropdown.js +319 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettingsBasic.js +326 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettingsOptionLabelSection.js +202 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAllOrNothingScoring.js +188 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAllOrNothingScoringWithAlternateAnswer.js +759 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAutoScoredScoring.js +936 -0
- package/cypress/e2e/ILC/ListSorting/listSortingClickAndDrop.js +456 -0
- package/cypress/e2e/ILC/ListSorting/listSortingEditTabBasicSection.js +165 -0
- package/cypress/e2e/ILC/ListSorting/listSortingEditTabScoringSection.js +259 -0
- package/cypress/e2e/ILC/ListSorting/listSortingHeaderSection.js +89 -0
- package/cypress/e2e/ILC/ListSorting/listSortingManuallyAndNonScoredScoring.js +171 -0
- package/cypress/e2e/ILC/ListSorting/listSortingOptionsSection.js +287 -0
- package/cypress/e2e/ILC/ListSorting/listSortingPartialDifferentWeightsScoring.js +210 -0
- package/cypress/e2e/ILC/ListSorting/listSortingPartialDifferentWeightsScoringWithAlternateTab.js +952 -0
- package/cypress/e2e/ILC/ListSorting/listSortingPartialEqualWeightsScoring.js +207 -0
- package/cypress/e2e/ILC/ListSorting/listSortingPartialEqualWeightsScoringWithAlternateAnswer.js +860 -0
- package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerCheckboxes.js +263 -0
- package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerSection.js +168 -0
- package/package.json +1 -1
@@ -0,0 +1,105 @@
|
|
1
|
+
import { listMatchingPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
const css = Cypress.env('css');
|
4
|
+
|
5
|
+
let optionsForThreeResponses = ['Correct answer for stem 1', 'Correct answer for stem 2', 'Correct answer for stem 3'];
|
6
|
+
|
7
|
+
describe('Create Item page - List Matching: Edit tab scoring types and set correct answer section (Correct answer tab)', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Edit tab \'Set correct answer\' section for Correct answer tab and \'Scoring\' section for Auto-scored: All or Nothing scoring type', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
cy.log('Navigating to List Matching question type');
|
16
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
17
|
+
cy.barsPreLoaderWait();
|
18
|
+
});
|
19
|
+
|
20
|
+
listMatchingPage.tests.verifyAutoScoredAllOrNothingPointsAndMinimumScoreAwardedLabelAndInputField();
|
21
|
+
|
22
|
+
listMatchingPage.tests.verifyDefaultStemFieldsAndResponseAreasInSetCorrectAnswerSection();
|
23
|
+
|
24
|
+
listMatchingPage.tests.verifyPointsFieldErrorState(10);
|
25
|
+
|
26
|
+
listMatchingPage.tests.verifyMinimumScoreIfAttemptedFieldErrorState(10, 20, 10);
|
27
|
+
});
|
28
|
+
|
29
|
+
describe('Edit tab \'Set correct answer\' section for Correct answer tab and \'Scoring\' section for Auto-scored: Partial equal weights scoring type', () => {
|
30
|
+
abortEarlySetup();
|
31
|
+
before(() => {
|
32
|
+
cy.log('Navigating to List Matching question type');
|
33
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
34
|
+
cy.barsPreLoaderWait();
|
35
|
+
});
|
36
|
+
|
37
|
+
listMatchingPage.tests.verifyAutoScoredPartialEqualWeightsScoringEditTabContents();
|
38
|
+
|
39
|
+
listMatchingPage.tests.verifyDefaultStemFieldsAndResponseAreasInSetCorrectAnswerSection();
|
40
|
+
|
41
|
+
listMatchingPage.tests.verifyAutoScoredPartialEqualWeightsScoringEditTabFunctionality();
|
42
|
+
});
|
43
|
+
|
44
|
+
describe('Edit tab \'Set correct answer\' section for Correct answer tab and \'Scoring\' section for Auto-scored: Partial different weights scoring type', () => {
|
45
|
+
abortEarlySetup();
|
46
|
+
before(() => {
|
47
|
+
cy.log('Navigating to List Matching question type');
|
48
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
49
|
+
cy.barsPreLoaderWait();
|
50
|
+
listMatchingPage.steps.addInputToOptionsForDragAndDropFields(optionsForThreeResponses);
|
51
|
+
});
|
52
|
+
|
53
|
+
listMatchingPage.tests.verifyAutoScoredPartialDifferentWeightsScoringEditTabContents();
|
54
|
+
|
55
|
+
listMatchingPage.tests.verifyDefaultStemFieldsAndResponseAreasInSetCorrectAnswerSection();
|
56
|
+
|
57
|
+
listMatchingPage.tests.verifyAutoScoredPartialDifferentWeightsScoringEditTabFunctionality();
|
58
|
+
});
|
59
|
+
|
60
|
+
describe('Edit tab \'Set correct answer\' section for Correct answer tab and \'Scoring\' section for Manually Scored scoring type', () => {
|
61
|
+
abortEarlySetup();
|
62
|
+
before(() => {
|
63
|
+
cy.log('Navigating to List Matching question type');
|
64
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
65
|
+
cy.barsPreLoaderWait();
|
66
|
+
});
|
67
|
+
|
68
|
+
it('User should be able to select \'Manually scored\' scoring type from scoring type dropdown', () => {
|
69
|
+
listMatchingPage.steps.selectAScoringTypeFromScoringTypeDropdown('Manually scored')
|
70
|
+
});
|
71
|
+
|
72
|
+
it('When the user has selected \'Manually Scored\' option from the Scoring Type dropdown then the \'Set Correct Answer\' section should not be displayed; \'All or Nothing\', \'Partial - equal weights\' and \'Partial - different weights\' radio buttons should not be displayed; \'Points\' and \'Minimum score awarded (if attempted)\' labels and input fields should be displayed; and inside Additional Settings accordion Check Answer section i.e. \'Allow students to check answer\' checkbox should not be displayed', () => {
|
73
|
+
listMatchingPage.setCorrectAnswerLabel()
|
74
|
+
.should('not.exist');
|
75
|
+
listMatchingPage.allOrNothingCheckbox()
|
76
|
+
.should('not.exist');
|
77
|
+
listMatchingPage.partialEqualWeightsCheckbox()
|
78
|
+
.should('not.exist');
|
79
|
+
listMatchingPage.partialDifferentWeightsCheckbox()
|
80
|
+
.should('not.exist');
|
81
|
+
listMatchingPage.steps.verifyDefaultMinimumScoreIfAttemptedLabelAndPointsField();
|
82
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
83
|
+
listMatchingPage.checkAnswerLabel()
|
84
|
+
.should('not.exist');
|
85
|
+
listMatchingPage.allowStudentsToCheckAnswerLabel()
|
86
|
+
.should('not.exist');
|
87
|
+
});
|
88
|
+
|
89
|
+
listMatchingPage.tests.verifyPointsFieldErrorState(10);
|
90
|
+
listMatchingPage.tests.verifyMinimumScoreIfAttemptedFieldErrorState(10, 20, 10);
|
91
|
+
});
|
92
|
+
|
93
|
+
describe('Edit tab \'Set correct answer\' section for Correct answer tab and \'Scoring\' section for Non Scored scoring type', () => {
|
94
|
+
abortEarlySetup();
|
95
|
+
before(() => {
|
96
|
+
cy.log('Navigating to List Matching question type');
|
97
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
98
|
+
cy.barsPreLoaderWait();
|
99
|
+
});
|
100
|
+
|
101
|
+
listMatchingPage.tests.verifyEditTabNonScoredScoringSectionContents();
|
102
|
+
|
103
|
+
listMatchingPage.tests.verifyDefaultStemFieldsAndResponseAreasInSetCorrectAnswerSection();
|
104
|
+
});
|
105
|
+
});
|
@@ -0,0 +1,117 @@
|
|
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', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Show correct answer', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigate to list matching question type and fill the option input fields in grouped options layout');
|
13
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithoutAlternateTab();
|
16
|
+
listMatchingPage.steps.switchToPreviewTab();
|
17
|
+
});
|
18
|
+
|
19
|
+
listMatchingScoring.tests.verifyShowCorrectAnswerBasicFunctionality();
|
20
|
+
});
|
21
|
+
|
22
|
+
describe('Question Preview: AutoScored - All or Nothing - grouped options layout', () => {
|
23
|
+
abortEarlySetup();
|
24
|
+
before(() => {
|
25
|
+
cy.log('Navigate to List matching question type, fill the necessary details and points and switch to preview tab');
|
26
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
27
|
+
cy.barsPreLoaderWait();
|
28
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithoutAlternateTab();
|
29
|
+
listMatchingPage.steps.allotPoints(20);
|
30
|
+
listMatchingPage.steps.setCorrectAnswersForScoringWithoutAlternateTab();
|
31
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
32
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
33
|
+
listMatchingPage.steps.switchToPreviewTab();
|
34
|
+
});
|
35
|
+
|
36
|
+
listMatchingScoring.tests.verifyAutoScoredAllOrNothingScoring();
|
37
|
+
|
38
|
+
listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('20');
|
39
|
+
});
|
40
|
+
|
41
|
+
describe('Question Preview: AutoScored - All or Nothing grouped options layout with identical response options', () => {
|
42
|
+
abortEarlySetup();
|
43
|
+
before(() => {
|
44
|
+
cy.log('Navigate to List Matching question type, fill the necessary details and points and switch to preview tab');
|
45
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
46
|
+
cy.barsPreLoaderWait();
|
47
|
+
listMatchingPage.steps.deleteStem(2);
|
48
|
+
listMatchingPage.steps.addInputToAllStemFields(['Stem 1', 'Stem 2']);
|
49
|
+
listMatchingPage.steps.selectResponseOptionsLayout('Grouped');
|
50
|
+
listMatchingPage.steps.addGroupTitle(0, 'Group 1');
|
51
|
+
listMatchingPage.steps.deleteResponseOptionInputField(2);
|
52
|
+
listMatchingPage.steps.addInputToOptionsForGroupedResponseLayout(0, ['Identical correct answer for stem 1', 'Incorrect answer 1']);
|
53
|
+
listMatchingPage.steps.addGroup();
|
54
|
+
listMatchingPage.steps.addGroupTitle(1, 'Group 2');
|
55
|
+
listMatchingPage.steps.addInputToOptionsForGroupedResponseLayout(1, ['Identical correct answer for stem 1', 'Correct answer for stem 2']);
|
56
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Identical correct answer for stem 1', 0);
|
57
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Correct answer for stem 2', 1);
|
58
|
+
listMatchingPage.steps.allotPoints(20);
|
59
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
60
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
61
|
+
listMatchingPage.steps.switchToPreviewTab();
|
62
|
+
});
|
63
|
+
|
64
|
+
it('Case: When user has identical options to give as input', () => {
|
65
|
+
cy.log('Both the identical options should be visible in the response options section and when user clicks on \'Show correct answer\' checkbox only one of the identical options should be displayed in the correct answer container as the correct answer');
|
66
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab(['Identical correct answer for stem 1', 'Incorrect answer 1', 'Identical correct answer for stem 1', 'Correct answer for stem 2']);
|
67
|
+
listMatchingPage.steps.checkShowCorrectAnswerCheckbox();
|
68
|
+
listMatchingPage.steps.verifyCorrectAnswerStemOptionsInCorrectAnswerContainerAndCount(['Identical correct answer for stem 1', 'Correct answer for stem 2'], ['1', '2']);
|
69
|
+
|
70
|
+
cy.log('Post-step: Unchecking show correct answer checkbox');
|
71
|
+
listMatchingPage.steps.uncheckShowCorrectAnswerCheckbox();
|
72
|
+
|
73
|
+
cy.log('When the user gives the correct answer as input and user selects the show correct answer checkbox, green check-mark icon should be displayed besides both the responses, correct answer container should not be displayed and user should be awarded with full points');
|
74
|
+
|
75
|
+
cy.log('Answering the stem 1 with the correct identical option');
|
76
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Identical correct answer for stem 1', 0);
|
77
|
+
|
78
|
+
cy.log('Answering the response 2 with the correct option');
|
79
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Correct answer for stem 2', 1);
|
80
|
+
listMatchingPage.steps.checkShowCorrectAnswerCheckbox();
|
81
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
82
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
83
|
+
listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
84
|
+
listMatchingPage.previewScoreText()
|
85
|
+
.verifyInnerText('20/20');
|
86
|
+
|
87
|
+
cy.log('Post-step: Unchecking show correct answer checkbox');
|
88
|
+
listMatchingPage.steps.uncheckShowCorrectAnswerCheckbox();
|
89
|
+
|
90
|
+
cy.log('When user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides responses and correct answer container should not be displayed');
|
91
|
+
listMatchingPage.steps.checkAnswer();
|
92
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
93
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
94
|
+
listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
95
|
+
|
96
|
+
cy.log('When the user gives correct input to the response but with a different identical option and user selects the show correct answer checkbox, then red cross-mark icon should be displayed besides the different identical response, correct answer container should be displayed with the user response marked incorrect and user should be awarded with zero points');
|
97
|
+
|
98
|
+
cy.log('Answering the response 1 with a different correct identical option');
|
99
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Identical correct answer for stem 1', 0);
|
100
|
+
listMatchingPage.steps.checkShowCorrectAnswerCheckbox();
|
101
|
+
listMatchingPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
102
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
103
|
+
listMatchingPage.previewScoreText()
|
104
|
+
.verifyInnerText('0/20');
|
105
|
+
listMatchingPage.steps.verifyCorrectAnswerStemOptionsInCorrectAnswerContainerAndCount(['Identical correct answer for stem 1'], ['1']);
|
106
|
+
|
107
|
+
cy.log('Post-step: Unchecking show correct answer checkbox');
|
108
|
+
listMatchingPage.steps.uncheckShowCorrectAnswerCheckbox();
|
109
|
+
|
110
|
+
cy.log('When user clicks on \'Check answer\' button, then then red cross-mark icon should be displayed besides the different identical response and correct answer container should not be displayed')
|
111
|
+
listMatchingPage.steps.checkAnswer()
|
112
|
+
listMatchingPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
113
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
114
|
+
listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
115
|
+
});
|
116
|
+
});
|
117
|
+
});
|
@@ -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', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - All or Nothing grouped 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 - 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(3);
|
20
|
+
listMatchingPage.steps.setCorrectAnswersForAlternateTab();
|
21
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
22
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
23
|
+
listMatchingPage.steps.switchToPreviewTab();
|
24
|
+
});
|
25
|
+
|
26
|
+
listMatchingScoring.tests.verifyAutoScoredAllOrNothingScoringWithAlternateAnswer();
|
27
|
+
|
28
|
+
listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer(7);
|
29
|
+
});
|
30
|
+
});
|
@@ -0,0 +1,49 @@
|
|
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 - grouped options layout - Manually scored', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question Preview: Manually scored grouped options layout', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigate to question, add input to stems and options, select manually scored scoring type and switch to preview tab');
|
14
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
listMatchingPage.steps.addQuestionInstructions();
|
17
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithoutAlternateTab();
|
18
|
+
listMatchingPage.steps.selectAScoringTypeFromScoringTypeDropdown('Manually scored');
|
19
|
+
listMatchingPage.steps.switchToPreviewTab();
|
20
|
+
});
|
21
|
+
|
22
|
+
it('When the user switches to the Preview tab, the question instruction, the question stems and grouped options should be visible', () => {
|
23
|
+
listMatchingPage.steps.verifyQuestionInstructionsText();
|
24
|
+
listMatchingPage.steps.verifyAllStemTextInPreviewTab(['Stem 1', 'Stem 2']);
|
25
|
+
listMatchingPage.steps.verifyGroupedResponseOptionsInPreviewTab(0, 'Group 1', ['Correct answer for stem 1', 'Incorrect answer 1']);
|
26
|
+
listMatchingPage.steps.verifyGroupedResponseOptionsInPreviewTab(1, 'Group 2', ['Correct answer for stem 2', 'Incorrect answer 2']);
|
27
|
+
});
|
28
|
+
|
29
|
+
listMatchingPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab();
|
30
|
+
});
|
31
|
+
|
32
|
+
describe('Question Preview: Non scored grouped options layout', () => {
|
33
|
+
abortEarlySetup();
|
34
|
+
before(() => {
|
35
|
+
cy.log('Navigate to question, add input to stems and options, select manually scored scoring type and switch to preview tab');
|
36
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
37
|
+
cy.barsPreLoaderWait();
|
38
|
+
listMatchingPage.steps.addQuestionInstructions();
|
39
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithoutAlternateTab();
|
40
|
+
listMatchingPage.steps.setCorrectAnswersForScoringWithoutAlternateTab();
|
41
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
42
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
43
|
+
listMatchingPage.steps.selectAScoringTypeFromScoringTypeDropdown('Non scored');
|
44
|
+
listMatchingPage.steps.switchToPreviewTab();
|
45
|
+
});
|
46
|
+
|
47
|
+
listMatchingScoring.tests.verifyNonScoredScoring();
|
48
|
+
});
|
49
|
+
});
|
@@ -0,0 +1,36 @@
|
|
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', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial different weights grouped 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 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.verifyAutoScoredPartialDifferentWeightsScoringWithAlternateAnswer('grouped');
|
29
|
+
|
30
|
+
listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('24');
|
31
|
+
|
32
|
+
listMatchingScoring.tests.verifyPenaltyPointsAwardedForIncorrectAnswer('5', '24');
|
33
|
+
|
34
|
+
listMatchingScoring.tests.verifyPointsAwardedForIncorrectAnswerWhenMinimumScoreAwardedAndPenaltyPointsAreDefined('5', '24');
|
35
|
+
});
|
36
|
+
});
|
@@ -0,0 +1,49 @@
|
|
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', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial different weights grouped options layout', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigate to question, add input to stems and options, set correct answers, switch to partial different weights scoring, allocate points, allow students to check answer, switch to preview tab');
|
13
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithoutAlternateTab();
|
16
|
+
listMatchingPage.steps.selectPartialDifferentWeightsCheckbox()
|
17
|
+
listMatchingPage.steps.setCorrectAnswersForScoringWithoutAlternateTab();
|
18
|
+
listMatchingPage.steps.addPartialDifferentWeightsPoints([5.4, 4.6]);
|
19
|
+
listMatchingPage.steps.uncheckRoundDownScoreCheckbox();
|
20
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
21
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
22
|
+
listMatchingPage.steps.switchToPreviewTab();
|
23
|
+
});
|
24
|
+
|
25
|
+
listMatchingScoring.tests.verifyAutoScoredPartialDifferentWeightsScoring();
|
26
|
+
|
27
|
+
listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('10');
|
28
|
+
|
29
|
+
listMatchingScoring.tests.verifyPenaltyPointsAwardedForIncorrectAnswer('2.6', '10');
|
30
|
+
|
31
|
+
listMatchingScoring.tests.verifyPointsAwardedForIncorrectAnswerWhenMinimumScoreAwardedAndPenaltyPointsAreDefined('2.6', '10');
|
32
|
+
});
|
33
|
+
|
34
|
+
describe('Question Preview: AutoScored - Partial different weights grouped options layout- Round down score', () => {
|
35
|
+
abortEarlySetup();
|
36
|
+
before(() => {
|
37
|
+
cy.log('Navigate to question, add input to stems and options, set correct answers and allocate points, switch to partial different weights scoring, allow students to check answer, switch to preview tab');
|
38
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
39
|
+
cy.barsPreLoaderWait();
|
40
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithoutAlternateTab();
|
41
|
+
listMatchingPage.steps.setCorrectAnswersForScoringWithoutAlternateTab();
|
42
|
+
listMatchingPage.steps.selectPartialDifferentWeightsCheckbox();
|
43
|
+
listMatchingPage.steps.addPartialDifferentWeightsPoints([4.1, 3.3]);
|
44
|
+
listMatchingPage.steps.switchToPreviewTab();
|
45
|
+
});
|
46
|
+
|
47
|
+
listMatchingScoring.tests.verifyAutoScoredPartialDifferentWeightsRoundDownScore();
|
48
|
+
});
|
49
|
+
});
|
@@ -0,0 +1,48 @@
|
|
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', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial equal weights grouped options layout', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigate to question, add input to stems and options, set correct answers and allocate points, switch to partial equal weights scoring, allow students to check answer, switch to preview tab');
|
13
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithoutAlternateTab();
|
16
|
+
listMatchingPage.steps.selectPartialEqualWeightsCheckbox();
|
17
|
+
listMatchingPage.steps.allotPoints(20);
|
18
|
+
listMatchingPage.steps.setCorrectAnswersForScoringWithoutAlternateTab();
|
19
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
20
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
21
|
+
listMatchingPage.steps.switchToPreviewTab();
|
22
|
+
});
|
23
|
+
|
24
|
+
listMatchingScoring.tests.verifyAutoScoredPartialEqualWeightsScoring();
|
25
|
+
|
26
|
+
listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('20');
|
27
|
+
|
28
|
+
listMatchingScoring.tests.verifyPenaltyPointsAwardedForIncorrectAnswer('8', '20');
|
29
|
+
|
30
|
+
listMatchingScoring.tests.verifyPointsAwardedForIncorrectAnswerWhenMinimumScoreAwardedAndPenaltyPointsAreDefined('8', '20');
|
31
|
+
});
|
32
|
+
|
33
|
+
describe('Question Preview: AutoScored - Partial equal weights grouped options layout- Round down score', () => {
|
34
|
+
abortEarlySetup();
|
35
|
+
before(() => {
|
36
|
+
cy.log('Navigate to question, add input to stems and options, set correct answers and allocate points, switch to partial equal weights scoring, allow students to check answer, switch to preview tab');
|
37
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
38
|
+
cy.barsPreLoaderWait();
|
39
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithoutAlternateTab();
|
40
|
+
listMatchingPage.steps.selectPartialEqualWeightsCheckbox();
|
41
|
+
listMatchingPage.steps.allotPoints(8.5);
|
42
|
+
listMatchingPage.steps.setCorrectAnswersForScoringWithoutAlternateTab();
|
43
|
+
listMatchingPage.steps.switchToPreviewTab();
|
44
|
+
});
|
45
|
+
|
46
|
+
listMatchingScoring.tests.verifyAutoScoredPartialEqualWeightsRoundDownScore();
|
47
|
+
});
|
48
|
+
});
|
@@ -0,0 +1,36 @@
|
|
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', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question Preview: AutoScored - Partial equal weights grouped options layout with alternate answer', () => {
|
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.verifyAutoScoredPartialEqualWeightsScoringWithAlternateAnswer('grouped');
|
29
|
+
|
30
|
+
listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('20');
|
31
|
+
|
32
|
+
listMatchingScoring.tests.verifyPenaltyPointsAwardedForIncorrectAnswer('3','20');
|
33
|
+
|
34
|
+
listMatchingScoring.tests.verifyPointsAwardedForIncorrectAnswerWhenMinimumScoreAwardedAndPenaltyPointsAreDefined('3', '20');
|
35
|
+
});
|
36
|
+
});
|