itemengine-cypress-automation 1.0.115 → 1.0.116
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/{barRecorderStyle.js → barRecorderStyle.smoke.js} +181 -179
- package/cypress/e2e/ILC/AudioResponseNew/{compactRecorderStyle.js → compactRecorderStyle.smoke.js} +178 -177
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +2 -1
- package/cypress/e2e/ILC/AudioResponseNew/{standardRecorderStyle.js → standardRecorderStyle.smoke.js} +197 -195
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +3 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +5 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +17 -17
- package/cypress/e2e/ILC/DrawingResponse/{drawingResponsePreviewTabContents.js → drawingResponsePreviewTabContents.smoke.js} +3 -3
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingPenaltyScoring.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/manuallyAndNonScored.js +1 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsBasic.js +0 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsBasic.js +1 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +0 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabScoringSection.js +276 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +73 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/conditionalCheckboxScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +2 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
- package/cypress/pages/audioResponsePage.js +13 -6
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +0 -27
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +2 -2
- package/cypress/pages/components/commonComponents.js +1 -1
- package/cypress/pages/components/figOverImageCanvasComponent.js +1 -1
- package/cypress/pages/components/playbackControlsBaseComponent.js +3 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +0 -9
- package/cypress/pages/drawingResponsePage.js +2 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +14 -16
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +112 -3
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +1 -1
- package/cypress/pages/readingRulerPage.js +1 -1
- package/cypress/pages/shortTextResponsePage.js +8 -8
- package/package.json +2 -2
@@ -2,17 +2,22 @@ import utilities from "../support/helpers/utilities";
|
|
2
2
|
import { figOverImageCanvasComponent, autoScoredScoringPreviewTab, optionsWrapperComponent, commonComponents, createQuestionBasePage, backgroundImageUploadComponent, scoringSectionBaseEditTab, questionInstructionsComponent, correctIncorrectAnswerLabelComponent, autoScoredStudentViewSettings, autoScoredSpecifyCorrectAnswerSection, autoScoredScoringSectionMultiResponseType } from "./components";
|
3
3
|
const css = Cypress.env('css');
|
4
4
|
|
5
|
+
const optionsForDropdown = ['Flower', 'Petal', 'Stem', 'Branch'];
|
6
|
+
|
5
7
|
const selectors = {
|
6
8
|
...questionInstructionsComponent,
|
7
9
|
...figOverImageCanvasComponent,
|
8
10
|
...autoScoredScoringPreviewTab,
|
9
11
|
...correctIncorrectAnswerLabelComponent,
|
12
|
+
...autoScoredScoringSectionMultiResponseType,
|
13
|
+
...autoScoredSpecifyCorrectAnswerSection,
|
10
14
|
//Dropdown options section
|
11
15
|
dropdownOptionsTab: () => cy.get('.ngie-tablist-tab-button[data-ngie-testid*="dropdown"]'),
|
12
16
|
dropdownOptionsInputField: () => cy.get('.input-editable input[type*="text"]'),
|
13
17
|
|
14
18
|
//Specify correct answer dropdown
|
15
19
|
dropdownSpecifyCorrectAnswerSection: () => cy.get('.response-dropdown [role="combobox"]'),
|
20
|
+
dropdownLabelSpecifyCorrectAnswerSection: () => cy.get('.response-label'),
|
16
21
|
|
17
22
|
//Dropdown list
|
18
23
|
dropdownListOptions: (ariaLabel = null) => {
|
@@ -87,7 +92,7 @@ const steps = {
|
|
87
92
|
/**
|
88
93
|
* @param {number} dropdownIndex Index of the dropdown
|
89
94
|
* @param {string} dropdownOption Option to be selected in the dropdown
|
90
|
-
* @description Select option from dropdown in
|
95
|
+
* @description Select option from dropdown in specify correct answer section
|
91
96
|
*/
|
92
97
|
selectResponseFromDropdownSpecifyCorrectAnswerSection: (dropdownIndex, dropdownOption) => {
|
93
98
|
fillInTheGapsOverImageDropdownPage.steps.expandResponseDropdownInSpecifyCorrectAnswerSection(dropdownIndex)
|
@@ -106,8 +111,8 @@ const steps = {
|
|
106
111
|
},
|
107
112
|
|
108
113
|
/**
|
109
|
-
* @param {number} responseDropdownIndex Index of response dropdown in
|
110
|
-
* @description Expand response dropdown in
|
114
|
+
* @param {number} responseDropdownIndex Index of response dropdown in specify correct answer section
|
115
|
+
* @description Expand response dropdown in specify correct answer section
|
111
116
|
*/
|
112
117
|
expandResponseDropdownInSpecifyCorrectAnswerSection: (responseDropdownIndex) => {
|
113
118
|
utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), responseDropdownIndex)
|
@@ -116,6 +121,36 @@ const steps = {
|
|
116
121
|
.should('have.attr', 'aria-expanded', 'true');
|
117
122
|
},
|
118
123
|
|
124
|
+
/**
|
125
|
+
* @param {number} responseDropdownIndex Index of response dropdown in specify correct answer section
|
126
|
+
* @description Verify dropdown is expanded in specify correct answer section
|
127
|
+
*/
|
128
|
+
verifyDropdownIsExpandedInSpecifyCorrectAnswerSection: (responseDropdownIndex) => {
|
129
|
+
utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), responseDropdownIndex)
|
130
|
+
.should('have.attr', 'aria-expanded', 'true');
|
131
|
+
},
|
132
|
+
|
133
|
+
/**
|
134
|
+
* @param {number} responseDropdownIndex Index of response dropdown in specify correct answer section
|
135
|
+
* @description Verify dropdown is collapsed in specify correct answer section
|
136
|
+
*/
|
137
|
+
verifyDropdownIsCollapsedInSpecifyCorrectAnswerSection: (responseDropdownIndex) => {
|
138
|
+
utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), responseDropdownIndex)
|
139
|
+
.should('have.attr', 'aria-expanded', 'false');
|
140
|
+
utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'notExist');
|
141
|
+
},
|
142
|
+
|
143
|
+
/**
|
144
|
+
* @param {number} responseDropdownIndex Index of response dropdown in specify correct answer section
|
145
|
+
* @description Expand and collapse dropdown in specify correct answer section
|
146
|
+
*/
|
147
|
+
expandAndCollapseDropdownInSpecifyCorrectAnswerSection: (responseDropdownIndex) => {
|
148
|
+
utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), responseDropdownIndex)
|
149
|
+
.click({ position: "right" });
|
150
|
+
cy.get('body')
|
151
|
+
.click();
|
152
|
+
},
|
153
|
+
|
119
154
|
/**
|
120
155
|
* @param {Object[]} CorrectAnswerArray - An array of objects containing the dropdownIndex and dropdownOption to be selected.
|
121
156
|
* @param {number} CorrectAnswerArray[].dropdownIndex - The index of dropdown in preview tab
|
@@ -243,10 +278,84 @@ const steps = {
|
|
243
278
|
verifyDropdownIsDisabled: (dropdownIndex) => {
|
244
279
|
utilities.verifyElementDisabledClass(utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownPreviewTab(), dropdownIndex));
|
245
280
|
},
|
281
|
+
|
282
|
+
verifyPointsPerResponseLabel: () => {
|
283
|
+
utilities.verifyInnerText(autoScoredScoringSectionMultiResponseType.pointsPerResponseLabel(), 'Points per response: -');
|
284
|
+
utilities.verifyElementVisibilityState(autoScoredScoringSectionMultiResponseType.pointsPerResponseLabel(), 'visible');
|
285
|
+
},
|
286
|
+
|
287
|
+
/**
|
288
|
+
* @description Verify points per response score displayed for partial equal weights
|
289
|
+
* @param {number} pointsPerResponse points per response score
|
290
|
+
*/
|
291
|
+
verifyPartialEqualWeightsPointsPerResponseScore: (pointsPerResponse) => {
|
292
|
+
utilities.verifyInnerText(autoScoredScoringSectionMultiResponseType.pointsPerResponseLabel(), `Points per response: ${pointsPerResponse}`);
|
293
|
+
},
|
246
294
|
}
|
247
295
|
|
248
296
|
const tests = {
|
249
297
|
...autoScoredScoringPreviewTab.tests,
|
298
|
+
...autoScoredSpecifyCorrectAnswerSection.tests,
|
299
|
+
...scoringSectionBaseEditTab.tests,
|
300
|
+
...autoScoredScoringSectionMultiResponseType.tests,
|
301
|
+
/**
|
302
|
+
* Verifies the contents and functionality of the 'Specify correct answer' accordion for fill in the gaps over image dropdown question.
|
303
|
+
* @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
|
304
|
+
* @example - verifySpecifyCorrectAnswerAccordionContentsAndFunctionality('Correct');
|
305
|
+
*/
|
306
|
+
verifySpecifyCorrectAnswerAccordionContentsAndFunctionality: (accordionName) => {
|
307
|
+
it(`When user has added a response token in image, then its corresponding dropdown \'Dropdown 1\' should be displayed in the ${accordionName} accordion in collapsed state`, () => {
|
308
|
+
utilities.verifyElementCount(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), 1);
|
309
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownIsCollapsedInSpecifyCorrectAnswerSection(0);
|
310
|
+
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownLabelSpecifyCorrectAnswerSection(), 0), 'Dropdown 1');
|
311
|
+
});
|
312
|
+
|
313
|
+
it('When user expands and collapses the dropdown without selecting any option, \'Error: Please set a correct answer.\' error message should be displayed', () => {
|
314
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAndCollapseDropdownInSpecifyCorrectAnswerSection(0);
|
315
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
316
|
+
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
317
|
+
});
|
318
|
+
|
319
|
+
it('When the user selects any option from the dropdown, then error message should disappear and that option should be displayed on the dropdown', () => {
|
320
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, optionsForDropdown[0]);
|
321
|
+
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
322
|
+
});
|
323
|
+
|
324
|
+
autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredPointsErrorMessageWhenPointsFieldIsEmpty(accordionName);
|
325
|
+
|
326
|
+
it(`CSS of ${accordionName} accordion contents`, { tags: 'css' }, () => {
|
327
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.dropdownLabelSpecifyCorrectAnswerSection(), {
|
328
|
+
'color': css.color.labels,
|
329
|
+
'font-size': css.fontSize.default,
|
330
|
+
'font-weight': css.fontWeight.regular
|
331
|
+
});
|
332
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), {
|
333
|
+
'background-color': css.color.figActiveComponentBg,
|
334
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
335
|
+
});
|
336
|
+
//CSS of selected dropdown option which appears on dropdown
|
337
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), {
|
338
|
+
'color': css.color.liText,
|
339
|
+
'font-size': css.fontSize.default,
|
340
|
+
'font-weight': css.fontWeight.regular
|
341
|
+
});
|
342
|
+
});
|
343
|
+
|
344
|
+
it(`Accessibility of ${accordionName} accordion contents`, { tags: 'a11y' }, () => {
|
345
|
+
cy.checkAccessibility(utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), 0).parents('[aria-label="Specify correct answer section"]'));
|
346
|
+
});
|
347
|
+
},
|
348
|
+
|
349
|
+
verifyContentsOfSpecifyCorrectAnswerSection: () => {
|
350
|
+
it('When user selects a scoring type then in the \'Correct\' accordion, all the contents should be displayed', () => {
|
351
|
+
fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection()
|
352
|
+
.each(($element, index) => {
|
353
|
+
utilities.verifyElementVisibilityState(cy.wrap($element), 'visible');
|
354
|
+
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownLabelSpecifyCorrectAnswerSection(), index), `Dropdown ${index + 1}`);
|
355
|
+
utilities.verifyElementVisibilityState(utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownLabelSpecifyCorrectAnswerSection(), index), 'visible');
|
356
|
+
})
|
357
|
+
});
|
358
|
+
},
|
250
359
|
}
|
251
360
|
|
252
361
|
export const fillInTheGapsOverImageDropdownPage = {
|
@@ -36,7 +36,7 @@ const selectors = {
|
|
36
36
|
responseContainerInPreviewTab: () => cy.get('[class*="AddTextResponseOnImagestyles__DraggableInput"]'),
|
37
37
|
canvasInPreviewTab: () => cy.get('[class*="PreviewTabstyles__ContentWrapper"] .image-container'),
|
38
38
|
correctAnswerSectionWrapper: () => cy.get('.cloze-with-text-correct-answer-wrapper'),
|
39
|
-
correctAnswersLabel: () => cy.get('.correct-
|
39
|
+
correctAnswersLabel: () => cy.get('.label-image-with-text-correct-answer-label'),
|
40
40
|
responseStatusWrapper: () => cy.get('.cloze-with-text-answer-status-response-preview-wrapper:visible'),
|
41
41
|
tickIconWrapper: () => cy.get('.tick-icon-wrapper [data-name*="Rectangle"]'),
|
42
42
|
responseAreaNumeration: () => cy.get('.response-input-adornment'),
|
@@ -50,11 +50,11 @@ const selectors = {
|
|
50
50
|
}
|
51
51
|
|
52
52
|
const steps = {
|
53
|
+
...colorPopupComponent.steps,
|
53
54
|
...createQuestionBasePage.steps,
|
54
55
|
...additionalSettingsPanel.steps,
|
55
56
|
...dialogBoxBase.steps,
|
56
57
|
...selectQuestionResourceToolPage.steps,
|
57
|
-
...colorPopupComponent.steps,
|
58
58
|
|
59
59
|
verifyDisplayButtonToStudentCheckboxIsChecked: () => {
|
60
60
|
readingRulerPage.displayButtonToStudentCheckbox()
|
@@ -8,8 +8,8 @@ const selectors = {
|
|
8
8
|
...autoScoredSpecifyCorrectAnswerSection,
|
9
9
|
|
10
10
|
correctAnswerAccordionLabel: () => cy.get('[class*="AnswerAccordionstyles__Label"]'),
|
11
|
-
|
12
|
-
|
11
|
+
answerInputFieldSpecifyCorrectAnswerSection: () => cy.get('.short-text-response-input-field input'),
|
12
|
+
answerInputFieldSpecifyCorrectAnswerSectionWrapper: () => cy.get('.short-text-response-input-field input').parents('.MuiTextField-root'),
|
13
13
|
exactRadioOptionLabel: () => cy.get('.ngie-radio-label').eq(0),
|
14
14
|
containsTextRadioOptionLabel: () => cy.get('.ngie-radio-label').eq(1),
|
15
15
|
caseSensitiveCheckboxLabel: () => cy.get('[data-ngie-testid="case-sensitive-checkbox"] .MuiFormControlLabel-label'),
|
@@ -98,7 +98,7 @@ const steps = {
|
|
98
98
|
.type(inputQuestion);
|
99
99
|
shortTextResponsePage.pointsInputField()
|
100
100
|
.type(points);
|
101
|
-
shortTextResponsePage.
|
101
|
+
shortTextResponsePage.answerInputFieldSpecifyCorrectAnswerSection()
|
102
102
|
.type(inputAnswer);
|
103
103
|
shortTextResponsePage.saveQuestionButton()
|
104
104
|
.click();
|
@@ -108,13 +108,13 @@ const steps = {
|
|
108
108
|
* @param {string} text text to entered in set correct answer input field
|
109
109
|
*/
|
110
110
|
enterTextInAnswerInputFieldSpecifyCorrectAnswerSection: (text) => {
|
111
|
-
shortTextResponsePage.
|
111
|
+
shortTextResponsePage.answerInputFieldSpecifyCorrectAnswerSection()
|
112
112
|
.type(text)
|
113
113
|
.should('have.value', text);
|
114
114
|
},
|
115
115
|
|
116
|
-
clearAndFocusOutOfSpecifyCorrectAnswerInputField: (
|
117
|
-
shortTextResponsePage.
|
116
|
+
clearAndFocusOutOfSpecifyCorrectAnswerInputField: () => {
|
117
|
+
shortTextResponsePage.answerInputFieldSpecifyCorrectAnswerSection()
|
118
118
|
.clear()
|
119
119
|
.blur();
|
120
120
|
},
|
@@ -237,8 +237,8 @@ const tests = {
|
|
237
237
|
|
238
238
|
verifyContentsOfSpecifyCorrectAnswerSection: () => {
|
239
239
|
it('In the \'Correct\' accordion, one answer input field should be visible', () => {
|
240
|
-
utilities.verifyElementVisibilityState(shortTextResponsePage.
|
241
|
-
utilities.verifyElementCount(shortTextResponsePage.
|
240
|
+
utilities.verifyElementVisibilityState(shortTextResponsePage.answerInputFieldSpecifyCorrectAnswerSection(), 'visible');
|
241
|
+
utilities.verifyElementCount(shortTextResponsePage.answerInputFieldSpecifyCorrectAnswerSection(), 1);
|
242
242
|
});
|
243
243
|
},
|
244
244
|
}
|
package/package.json
CHANGED