itemengine-cypress-automation 1.0.532 → 1.0.533-IEI-5329-Cypress-5f3fbe9.0
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.
@@ -133,9 +133,10 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
133
133
|
case 'Item preview':
|
134
134
|
case 'Student view':
|
135
135
|
utilities.verifyCSS(listOrderingPage.optionPreviewTab(), {
|
136
|
-
'background-color': css.color.transparent,
|
136
|
+
'background-color': view === 'Student view' ? css.color.white : css.color.transparent,
|
137
137
|
});
|
138
|
-
utilities.verifyCSS(
|
138
|
+
utilities.verifyCSS(
|
139
|
+
view === 'Student view' ? listOrderingPage.optionTextPreviewTabStudentView().parents('.draggable-item') : listOrderingPage.optionTextPreviewTab().parents('.draggable-item-wrapper'), {
|
139
140
|
'border': `1px solid ${css.color.draggableOptionBorder}`
|
140
141
|
});
|
141
142
|
utilities.verifyCSS(listOrderingPage.optionPreviewTab().find('.question-text-wrapper'), {
|
@@ -38,7 +38,7 @@ const selectors = {
|
|
38
38
|
graphImageEditTab: () => cy.get('.ngie-jxgbox .JXGimage'),
|
39
39
|
snapToGridCheckbox: () => cy.get('[data-ngie-testid="snap-to-grid-checkbox"] input'),
|
40
40
|
snapToGridLabel: () => cy.get('[data-ngie-testid="snap-to-grid-checkbox"] .MuiFormControlLabel-label'),
|
41
|
-
graphLine: () => cy.get('line[tabindex="
|
41
|
+
graphLine: () => cy.get('line[tabindex="0"]'),
|
42
42
|
graphCircle: () => cy.get('ellipse[fill-opacity="0"]'),
|
43
43
|
graphPolygon: () => cy.get('polygon'),
|
44
44
|
graphSine: () => cy.get('[pointer-events="visiblePainted"][tabindex="0"][fill-rule="evenodd"]'),
|
@@ -119,7 +119,7 @@ const selectors = {
|
|
119
119
|
xAxisLabelGraphPreviewTab: () => cy.get('[class*="GraphingQuestion"] .graph-footer .question-text-wrapper').eq(1),
|
120
120
|
xAxisGraphPreviewTab: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox svg line[stroke-linecap="butt"]').eq(0),
|
121
121
|
yAxisGraphPreviewTab: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox svg line[stroke-linecap="butt"]').eq(1),
|
122
|
-
graphLinePreviewTab: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox svg').eq(0).find('line[tabindex="
|
122
|
+
graphLinePreviewTab: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox svg').eq(0).find('line[tabindex="0"]'),
|
123
123
|
graphLineSegmentsPreviewTab: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox svg').eq(0).find('line[tabindex="0"]'),
|
124
124
|
graphCirclePreviewTab: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox svg').eq(0).find('ellipse[fill-opacity="0"]'),
|
125
125
|
graphPolygonPreviewTab: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox svg').eq(0).find('polygon'),
|
@@ -230,13 +230,13 @@ const selectors = {
|
|
230
230
|
//Grading view
|
231
231
|
gradingViewQuestionSineWave: () => cy.get('.ngie-jxgbox').eq(0).find('[pointer-events="visiblePainted"][tabindex="0"][fill-rule="evenodd"]'),
|
232
232
|
gradingViewQuestionCircle: () => cy.get('.ngie-jxgbox').eq(0).find('ellipse[fill-opacity="0"]'),
|
233
|
-
gradingViewQuestionLine: () => cy.get('.ngie-jxgbox').eq(0).find('line[tabindex="
|
233
|
+
gradingViewQuestionLine: () => cy.get('.ngie-jxgbox').eq(0).find('line[tabindex="0"]'),
|
234
234
|
|
235
235
|
//Correct answer section
|
236
236
|
correctAnswerLabel: () => cy.get('[class*="AnswerLabel"]'),
|
237
237
|
graphCorrectAnswerSection: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox svg'),
|
238
238
|
graphCircleCorrectAnswerSection: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox').eq(1).find('ellipse[fill-opacity="0"]'),
|
239
|
-
graphLineCorrectAnswerSection: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox').eq(1).find('line[tabindex="
|
239
|
+
graphLineCorrectAnswerSection: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox').eq(1).find('line[tabindex="0"]'),
|
240
240
|
graphPolygonCorrectAnswerSection: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox').eq(1).find('polygon'),
|
241
241
|
graphSineWaveCorrectAnswerSection: () => cy.get('[class*="GraphingQuestion"] .ngie-jxgbox').eq(1).find('[pointer-events="visiblePainted"][tabindex="0"][fill-rule="evenodd"]'),
|
242
242
|
correctIncorrectStatusMessageText: () => cy.get('[class*="Graphingstyles__CorrectIncorrectWrapper"]'),
|
@@ -144,7 +144,7 @@ const selectors = {
|
|
144
144
|
//Formula Template
|
145
145
|
layoutAccordion: () => cy.get('.custom-settings-option-wrapper .ngie-accordion-summary:visible').eq(0),
|
146
146
|
layoutAccordionExpandIcon: () => cy.get('.ngie-accordion-summary [class*="expandIconWrapper"]').eq(2),
|
147
|
-
inputFieldLayoutAccordion: () => cy.get('.
|
147
|
+
inputFieldLayoutAccordion: () => cy.get('.cloze-math-response-editor .mq-editable-field'),
|
148
148
|
addResponseContainerButton: () => cy.get('.response-container-button'),
|
149
149
|
responseFieldFormulaTemplatePreviewTab: () => cy.get('.add_response_element .mq-root-block, .add_response_element[mathquill-block-id]'),
|
150
150
|
responseContainerLabel: () => cy.get('[class*="FormulaTemplatestyles__ResponseContainerWrapper"]'),
|