itemengine-cypress-automation 1.0.295-applitools-1a2329c.0 → 1.0.295-applitools-05cc9de.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.
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +0 -10
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/applitools.config.js +1 -3
- package/cypress/support/commands.js +5 -0
- package/package.json +6 -5
@@ -11,14 +11,6 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -300,7 +292,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
300
292
|
});
|
301
293
|
|
302
294
|
//Fully correct
|
303
|
-
it(
|
295
|
+
it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed', () => {
|
304
296
|
if (view === 'Grading view') {
|
305
297
|
studentViewPage.steps.clearResponses();
|
306
298
|
}
|
@@ -322,7 +314,6 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
322
314
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
323
315
|
chartsBarPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
324
316
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
325
|
-
cy.eyesCheckWindow(`${view} - Fully correct case`);
|
326
317
|
});
|
327
318
|
});
|
328
319
|
});
|
package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js
CHANGED
@@ -13,14 +13,6 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
-
beforeEach(() => {
|
17
|
-
cy.startApplitools();
|
18
|
-
});
|
19
|
-
|
20
|
-
afterEach(() => {
|
21
|
-
cy.eyesClose();
|
22
|
-
});
|
23
|
-
|
24
16
|
views.forEach((view) => {
|
25
17
|
describe(`Preview tab contents - Edit bar graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
|
26
18
|
abortEarlySetup();
|
@@ -150,10 +142,9 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
|
|
150
142
|
|
151
143
|
chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('3', barBackgroundColor[3], 'Bar 4');
|
152
144
|
|
153
|
-
it(
|
145
|
+
it('Horizontal: User should be able to edit the label a bar', () => {
|
154
146
|
chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(0, '2000');
|
155
147
|
chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(3, '2004');
|
156
|
-
cy.eyesCheckWindow(`${view} - Charts bar after editing the bar height and labels`);
|
157
148
|
});
|
158
149
|
|
159
150
|
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
@@ -14,14 +14,6 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (views.includes('Grading view')) {
|
26
18
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
27
19
|
abortEarlySetup();
|
@@ -129,7 +121,6 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
|
|
129
121
|
chartsBarPage.steps.verifyGraphTitleInCorrectAnswerSection('Graph of profits');
|
130
122
|
chartsBarPage.steps.verifyYAxisLabelInCorrectAnswerSection('Profit');
|
131
123
|
chartsBarPage.steps.verifyXAxisLabelInCorrectAnswerSection('Year');
|
132
|
-
cy.eyesCheckWindow('Charts bar: Vertical - Grading view contents');
|
133
124
|
});
|
134
125
|
|
135
126
|
it('Points and the total score should be displayed', () => {
|
@@ -241,7 +232,6 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
|
|
241
232
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
242
233
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
|
243
234
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
244
|
-
cy.eyesCheckWindow('Charts bar: Verical - Correct answer view contents')
|
245
235
|
});
|
246
236
|
|
247
237
|
it('The points alloted to the question should be displayed', () => {
|
@@ -13,14 +13,6 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
-
beforeEach(() => {
|
17
|
-
cy.startApplitools();
|
18
|
-
});
|
19
|
-
|
20
|
-
afterEach(() => {
|
21
|
-
cy.eyesClose();
|
22
|
-
});
|
23
|
-
|
24
16
|
if (views.includes('Grading view')) {
|
25
17
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
26
18
|
abortEarlySetup();
|
@@ -114,7 +106,7 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
|
|
114
106
|
utilities.verifyElementVisibilityState(chartsLinePage.correctAnswersLabel(), 'visible');
|
115
107
|
});
|
116
108
|
|
117
|
-
it('
|
109
|
+
it('Correct answer should be displayed in the correct answer section', () => {
|
118
110
|
chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 0, value: 2, range: 20 });
|
119
111
|
chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 20 });
|
120
112
|
chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 20 });
|
@@ -128,7 +120,6 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
|
|
128
120
|
chartsLinePage.steps.verifyGraphTitleInCorrectAnswerSection('Graph of profits');
|
129
121
|
chartsLinePage.steps.verifyYAxisLabelInCorrectAnswerSection('Profit');
|
130
122
|
chartsLinePage.steps.verifyXAxisLabelInCorrectAnswerSection('Year');
|
131
|
-
cy.eyesCheckWindow('Charts Line - Grading view contents');
|
132
123
|
});
|
133
124
|
|
134
125
|
it('Points and the total score should be displayed', () => {
|
@@ -229,7 +220,7 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
|
|
229
220
|
utilities.verifyElementVisibilityState(chartsLinePage.previewTabToolBarWrapper(), 'notExist');
|
230
221
|
});
|
231
222
|
|
232
|
-
it('
|
223
|
+
it('The correct answer set by user should be displayed in the correct answer view', () => {
|
233
224
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 0, value: 2, range: 20 });
|
234
225
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 1, value: 2, range: 20 });
|
235
226
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 20 });
|
@@ -241,7 +232,6 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
|
|
241
232
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
242
233
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
243
234
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
244
|
-
cy.eyesCheckWindow('Charts Line - Correct answer view contents');
|
245
235
|
});
|
246
236
|
|
247
237
|
it('The points alloted to the question should be displayed', () => {
|
@@ -12,14 +12,6 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
views.forEach((view) => {
|
24
16
|
describe(`Preview tab contents - Edit line graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -285,11 +277,10 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
285
277
|
cy.checkAccessibility(chartsLinePage.previewTabGraphTitle().parents('[class*="ChartsPreviewstyles__PreviewWrapper"]'));
|
286
278
|
});
|
287
279
|
|
288
|
-
it(
|
280
|
+
it('When user deletes a point, then that point should be deleted and the add point button should be enabled again', () => {
|
289
281
|
chartsLinePage.steps.deletePointInPreviewTab(3);
|
290
282
|
utilities.verifyElementCount(chartsLinePage.previewTabPoint(), 3);
|
291
283
|
utilities.verifyElementVisibilityState(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 4), 'notExist');
|
292
|
-
cy.eyesCheckWindow(`${view} - Charts Line: Charts bar after adding and deleting points`);
|
293
284
|
});
|
294
285
|
});
|
295
286
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -205,7 +197,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
205
197
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
206
198
|
});
|
207
199
|
|
208
|
-
it(
|
200
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
209
201
|
if (view === 'Grading view') {
|
210
202
|
studentViewPage.steps.clearResponses();
|
211
203
|
};
|
@@ -226,7 +218,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
226
218
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
227
219
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
228
220
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
229
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question correctly`);
|
230
221
|
});
|
231
222
|
});
|
232
223
|
});
|
@@ -16,14 +16,6 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
16
16
|
cy.loginAs('admin');
|
17
17
|
});
|
18
18
|
|
19
|
-
beforeEach(() => {
|
20
|
-
cy.startApplitools();
|
21
|
-
});
|
22
|
-
|
23
|
-
afterEach(() => {
|
24
|
-
cy.eyesClose();
|
25
|
-
});
|
26
|
-
|
27
19
|
if (!grepTags || !grepTags.includes('smoke')) {
|
28
20
|
describe('Question preview modes: Student view and Grading view', () => {
|
29
21
|
abortEarlySetup();
|
@@ -159,7 +151,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
159
151
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
160
152
|
});
|
161
153
|
|
162
|
-
it(
|
154
|
+
it('When the user attempts the question correctly, then the user should be awarded with full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
163
155
|
if (view === 'Grading view') {
|
164
156
|
studentViewPage.steps.clearResponses();
|
165
157
|
};
|
@@ -178,7 +170,6 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
178
170
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
179
171
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
180
172
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
181
|
-
cy.eyesCheckWindow(`FIG Dropdown - ${view} - Attempting the question correctly`);
|
182
173
|
});
|
183
174
|
});
|
184
175
|
});
|
@@ -12,14 +12,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
if (!grepTags || !grepTags.includes('smoke')) {
|
24
16
|
describe('Question preview modes: Student view and Grading view', () => {
|
25
17
|
abortEarlySetup();
|
@@ -191,7 +183,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
191
183
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
192
184
|
});
|
193
185
|
|
194
|
-
it(
|
186
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
195
187
|
if (view === 'Grading view') {
|
196
188
|
studentViewPage.steps.clearResponses();
|
197
189
|
};
|
@@ -213,7 +205,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
213
205
|
//Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
|
214
206
|
//fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
215
207
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
216
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question correctly`);
|
217
208
|
});
|
218
209
|
});
|
219
210
|
});
|
@@ -16,14 +16,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
16
16
|
cy.loginAs('admin');
|
17
17
|
});
|
18
18
|
|
19
|
-
beforeEach(() => {
|
20
|
-
cy.startApplitools();
|
21
|
-
});
|
22
|
-
|
23
|
-
afterEach(() => {
|
24
|
-
cy.eyesClose();
|
25
|
-
});
|
26
|
-
|
27
19
|
if (!grepTags || !grepTags.includes('smoke')) {
|
28
20
|
describe('Question preview modes: Student view and Grading view', () => {
|
29
21
|
abortEarlySetup();
|
@@ -168,7 +160,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
168
160
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
169
161
|
});
|
170
162
|
|
171
|
-
it(
|
163
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
172
164
|
if (view === 'Grading view') {
|
173
165
|
studentViewPage.steps.clearResponses();
|
174
166
|
};
|
@@ -188,7 +180,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
188
180
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(1);
|
189
181
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
190
182
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
191
|
-
cy.eyesCheckWindow(`${view} - Attempting the question correctly`);
|
192
183
|
});
|
193
184
|
});
|
194
185
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -162,7 +154,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
162
154
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
163
155
|
});
|
164
156
|
|
165
|
-
it(
|
157
|
+
it('FIG over image Text - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
166
158
|
if (view === 'Grading view') {
|
167
159
|
studentViewPage.steps.clearResponses();
|
168
160
|
};
|
@@ -184,7 +176,6 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
184
176
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
|
185
177
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
186
178
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
187
|
-
cy.eyesCheckWindow(`FIG over image text - ${view} view - Attempting the question correctly`);
|
188
179
|
});
|
189
180
|
});
|
190
181
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -154,7 +146,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
154
146
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
155
147
|
});
|
156
148
|
|
157
|
-
it(
|
149
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
158
150
|
if (view === 'Grading view') {
|
159
151
|
studentViewPage.steps.clearResponses();
|
160
152
|
};
|
@@ -175,7 +167,6 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
175
167
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
176
168
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
177
169
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
178
|
-
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Attempting the question correctly`);
|
179
170
|
});
|
180
171
|
});
|
181
172
|
});
|
package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js
CHANGED
@@ -14,14 +14,6 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
views.forEach((view) => {
|
26
18
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
27
19
|
abortEarlySetup();
|
@@ -85,10 +77,9 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
85
77
|
}
|
86
78
|
});
|
87
79
|
|
88
|
-
it(
|
80
|
+
it('Horizontal Question instructions should be visible', () => {
|
89
81
|
utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
|
90
82
|
utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
|
91
|
-
cy.eyesCheckWindow(`${view} - List ordering: Horizontal orientation - Default question view`);
|
92
83
|
});
|
93
84
|
|
94
85
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -14,14 +14,6 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (!grepTags || !grepTags.includes('smoke')) {
|
26
18
|
describe('Question preview modes: Student view and Grading view', () => {
|
27
19
|
abortEarlySetup();
|
@@ -178,7 +170,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
178
170
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
179
171
|
});
|
180
172
|
|
181
|
-
it(
|
173
|
+
it('When the user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
182
174
|
if (view === 'Grading view') {
|
183
175
|
studentViewPage.steps.clearResponses();
|
184
176
|
};
|
@@ -203,7 +195,6 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
203
195
|
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
204
196
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
205
197
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
206
|
-
cy.eyesCheckWindow(`List ordering:Reorder as a separate list ${view} view - Attempting the question correctly`);
|
207
198
|
});
|
208
199
|
});
|
209
200
|
});
|
@@ -13,14 +13,6 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
-
beforeEach(() => {
|
17
|
-
cy.startApplitools();
|
18
|
-
});
|
19
|
-
|
20
|
-
afterEach(() => {
|
21
|
-
cy.eyesClose();
|
22
|
-
});
|
23
|
-
|
24
16
|
views.forEach((view) => {
|
25
17
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
26
18
|
abortEarlySetup();
|
@@ -79,13 +71,13 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
79
71
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.previewTabXAxisLabelButton(), 'visible');
|
80
72
|
});
|
81
73
|
|
82
|
-
it(
|
74
|
+
it('The number line axis should be displayed with labels from 1 to 6 with 20 divisions', () => {
|
83
75
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.numberLineAxisPreviewTab(), 'exist');
|
84
76
|
chartsDotPlotPage.steps.verifyDivisionsOnNumberLineAxisPreviewTab({ min: 1, max: 6, interval: 0.25 });
|
85
77
|
chartsDotPlotPage.steps.verifyLabelsOnNumberLineAxisPreviewTab(1, 6, 4);
|
86
78
|
});
|
87
79
|
|
88
|
-
it(
|
80
|
+
it('User should be able to edit the X axis labels in preview tab', () => {
|
89
81
|
chartsDotPlotPage.steps.editXAxisLabelInPreviewTab('Numbers of days');
|
90
82
|
utilities.verifyInnerText(chartsDotPlotPage.previewTabXAxisLabelButton(), 'Numbers of days');
|
91
83
|
});
|
@@ -172,7 +164,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
172
164
|
chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
|
173
165
|
});
|
174
166
|
|
175
|
-
it(
|
167
|
+
it('When user removes dots from dot column having 10 dots then \'Add dot\' button should be in enabled state', () => {
|
176
168
|
//using minus button
|
177
169
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(9, { point: 5, min: 1, interval: 0.25 });
|
178
170
|
chartsDotPlotPage.steps.selectDotColumnInPreviewTab({ point: 5, min: 1, interval: 0.25 });
|
@@ -182,7 +174,6 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
182
174
|
chartsDotPlotPage.steps.decreaseDotInDotColumnUsingKeyboardPreviewTab(1, { point: 4, min: 1, interval: 0.25 });
|
183
175
|
utilities.verifyElementNotDisabled(chartsDotPlotPage.addButtonPreviewTab());
|
184
176
|
chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
|
185
|
-
cy.eyesCheckWindow(`${view} - Charts Dot - Charts Dot: After Adding/Removing dots`);
|
186
177
|
});
|
187
178
|
|
188
179
|
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
@@ -8,7 +8,5 @@ module.exports = {
|
|
8
8
|
{ width: 1024, height: 1366, name: 'safari' }
|
9
9
|
],
|
10
10
|
//Configuration options: https://applitools.com/tutorials/sdks/cypress/configuration
|
11
|
-
|
12
|
-
failCypressOnDiff: false, // Set to true to fail the test when differences are detected
|
13
|
-
isDisabled: false // Set to true to disable Applitools
|
11
|
+
APPLITOOLS_IS_DISABLED: Cypress.env('APPLITOOLS_IS_DISABLED')
|
14
12
|
};
|
@@ -6,6 +6,8 @@ import { iePage } from './migrationHelpers/verifyIeQuestionData';
|
|
6
6
|
import { lrnPage } from './migrationHelpers/extractLrnQuestionData';
|
7
7
|
require('cy-verify-downloads').addCustomCommand();
|
8
8
|
import { apiKey, browser, serverUrl } from '../e2e/applitools.config';
|
9
|
+
import * as applitoolsConfig from '../e2e/applitools.config';
|
10
|
+
const isEnabledDisabled = Cypress.env('APPLITOOLS_IS_DISABLED');
|
9
11
|
//import addContext from "mochawesome/addContext";
|
10
12
|
|
11
13
|
const randomUser = (j, username, i) => ({
|
@@ -162,6 +164,9 @@ Cypress.Commands.add('startApplitools', () => {
|
|
162
164
|
browser,
|
163
165
|
appName: 'Applitools Demo - ILC',
|
164
166
|
testName: Cypress.currentTest.title,
|
167
|
+
isDisabled: applitoolsConfig.APPLITOOLS_IS_DISABLED,
|
168
|
+
ignoreDisplacements: true,
|
169
|
+
failCypressOnDiff: false
|
165
170
|
});
|
166
171
|
});
|
167
172
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.295-applitools-
|
3
|
+
"version": "1.0.295-applitools-05cc9de.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -14,10 +14,11 @@
|
|
14
14
|
"spinnaker:smoke": "node scripts/smoke.mjs --env theme=ilc,grepTags=smoke",
|
15
15
|
"local:migration": "node scripts/migrationLocal.mjs --env theme=ilc",
|
16
16
|
"spinnaker:migration": "node scripts/migration.mjs --env theme=ilc",
|
17
|
-
"cy:ildev": "cypress open --env fileConfig=ildev",
|
18
|
-
"cy:ilprod": "cypress open --env fileConfig=ilprod",
|
19
|
-
"cy:ilqa": "cypress open --env fileConfig=ilqa",
|
20
|
-
"cy:ilstage": "cypress open --env fileConfig=ilstage"
|
17
|
+
"cy:ildev": "cypress open --env fileConfig=ildev,APPLITOOLS_IS_DISABLED=true",
|
18
|
+
"cy:ilprod": "cypress open --env fileConfig=ilprod,APPLITOOLS_IS_DISABLED=true",
|
19
|
+
"cy:ilqa": "cypress open --env fileConfig=ilqa,APPLITOOLS_IS_DISABLED=true",
|
20
|
+
"cy:ilstage": "cypress open --env fileConfig=ilstage,APPLITOOLS_IS_DISABLED=true",
|
21
|
+
"cy:applitools": "cypress open --env fileConfig=ilstage"
|
21
22
|
},
|
22
23
|
"repository": {
|
23
24
|
"type": "git",
|