itemengine-cypress-automation 1.0.470-removeUnnecessaryReloadCondition-a0f6db8.0 → 1.0.470
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.
@@ -62,7 +62,7 @@ const editedFontSize = 'Normal';
|
|
62
62
|
|
63
63
|
const uuidString = uuid();
|
64
64
|
|
65
|
-
describe('Edit Question and edit item',
|
65
|
+
describe('Edit Question and edit item', () => {
|
66
66
|
before(() => {
|
67
67
|
cy.loginAs('admin');
|
68
68
|
cy.createThinkSphereItem(uuidString, true);
|
@@ -73,7 +73,7 @@ describe('Edit Question and edit item', { tags: 'smoke' }, () => {
|
|
73
73
|
cy.deleteThinkSphereItem(uuidString);
|
74
74
|
});
|
75
75
|
|
76
|
-
describe('Edit question', () => {
|
76
|
+
describe('Edit question', { tags: 'smoke' }, () => {
|
77
77
|
abortEarlySetup();
|
78
78
|
it('When user edits the question instructions, then the changes should be saved successfully and edited question instruction should get displayed in preview side', () => {
|
79
79
|
thinkSpherePage.steps.clickOnEditThinkSphereItem();
|
@@ -93,7 +93,7 @@ describe('Edit Question and edit item', { tags: 'smoke' }, () => {
|
|
93
93
|
thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
|
94
94
|
});
|
95
95
|
|
96
|
-
thinkSpherePage.tests.verifyStrategiesAndSentenceStartersSection({editedStrategies, editedSentenceStarters, selectStrategies, selectSentenceStarters});
|
96
|
+
thinkSpherePage.tests.verifyStrategiesAndSentenceStartersSection({ editedStrategies, editedSentenceStarters, selectStrategies, selectSentenceStarters });
|
97
97
|
|
98
98
|
it('When user updates the solve phase toolbar options and controls, then it should get updated successfully', () => {
|
99
99
|
thinkSpherePage.steps.switchToEditTab();
|
@@ -149,7 +149,7 @@ describe('Edit Question and edit item', { tags: 'smoke' }, () => {
|
|
149
149
|
});
|
150
150
|
});
|
151
151
|
|
152
|
-
describe('Edit review question', () => {
|
152
|
+
describe('Edit review question', { tags: 'smoke' }, () => {
|
153
153
|
abortEarlySetup();
|
154
154
|
before(() => {
|
155
155
|
browseItemsPage.steps.clickOnAddReviewItem();
|
@@ -210,7 +210,7 @@ describe('Edit Question and edit item', { tags: 'smoke' }, () => {
|
|
210
210
|
'font-size': css.fontSize.normal,
|
211
211
|
'font-weight': css.fontWeight.semibold,
|
212
212
|
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
213
|
-
'color': css.color.primaryBtnBorder,
|
213
|
+
'color': css.color.primaryBtnBorder,
|
214
214
|
});
|
215
215
|
});
|
216
216
|
|
@@ -231,7 +231,7 @@ describe('Edit Question and edit item', { tags: 'smoke' }, () => {
|
|
231
231
|
'font-weight': css.fontWeight.semibold,
|
232
232
|
});
|
233
233
|
});
|
234
|
-
|
234
|
+
|
235
235
|
it('\'The problem is asking me to\' section header should be present', () => {
|
236
236
|
utilities.verifyElementVisibilityState(thinkSpherePage.problemAskingToMeTextWrapper(), 'visible');
|
237
237
|
utilities.verifyInnerText(thinkSpherePage.problemAskingToMeTextWrapper(), 'The problem is asking me to...');
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import uuid from 'react-uuid';
|
2
|
-
import { thinkSpherePage } from "../../../pages";
|
2
|
+
import { thinkSpherePage, itemPreviewPage } from "../../../pages";
|
3
3
|
import { browseItemsPage } from "../../../pages/components/browseItemsPage";
|
4
4
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
5
5
|
import utilities from "../../../support/helpers/utilities";
|
6
6
|
import { editSectionWhiteBoardToolButtons, whiteBoardTools } from '../../../fixtures/thinkSphereWhiteboardTools';
|
7
7
|
const css = Cypress.env('css');
|
8
|
+
let itemReferenceID = "";
|
8
9
|
|
9
10
|
describe('Grading view : ThinkSphere Question - Solve Section', () => {
|
10
11
|
before(() => {
|
@@ -19,9 +20,13 @@ describe('Grading view : ThinkSphere Question - Solve Section', () => {
|
|
19
20
|
thinkSpherePage.steps.selectOptionFromToolsAndControls(toolName);
|
20
21
|
})
|
21
22
|
thinkSpherePage.steps.clickOnSaveButton();
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
24
|
+
itemPreviewPage.referenceID()
|
25
|
+
.invoke('text')
|
26
|
+
.then(($refID) => {
|
27
|
+
itemReferenceID = $refID;
|
28
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
29
|
+
});
|
25
30
|
thinkSpherePage.steps.clickOnSolveTab();
|
26
31
|
thinkSpherePage.steps.submitResponseAndGotoGradingView();
|
27
32
|
thinkSpherePage.steps.clickOnSolveTab();
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import uuid from 'react-uuid';
|
2
|
-
import { thinkSpherePage } from "../../../pages";
|
2
|
+
import { thinkSpherePage, itemPreviewPage } from "../../../pages";
|
3
3
|
import { browseItemsPage } from "../../../pages/components/browseItemsPage";
|
4
4
|
import { commonComponents } from "../../../pages/components/commonComponents";
|
5
5
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
6
6
|
import utilities from "../../../support/helpers/utilities";
|
7
7
|
import { whiteBoardTools, editSectionWhiteBoardToolButtons } from "../../../fixtures/thinkSphereWhiteboardTools";
|
8
8
|
const css = Cypress.env('css');
|
9
|
+
let itemReferenceID = "";
|
9
10
|
|
10
11
|
describe('Student view : ThinkSphere Question - Solve Section', () => {
|
11
12
|
before(() => {
|
@@ -19,9 +20,13 @@ describe('Student view : ThinkSphere Question - Solve Section', () => {
|
|
19
20
|
thinkSpherePage.steps.selectOptionFromToolsAndControls(toolName);
|
20
21
|
})
|
21
22
|
thinkSpherePage.steps.clickOnSaveButton();
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
24
|
+
itemPreviewPage.referenceID()
|
25
|
+
.invoke('text')
|
26
|
+
.then(($refID) => {
|
27
|
+
itemReferenceID = $refID;
|
28
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
29
|
+
});
|
25
30
|
thinkSpherePage.steps.clickOnSolveTab();
|
26
31
|
});
|
27
32
|
|