itemengine-cypress-automation 1.0.596-IEI-7043-503a5a4.0 → 1.0.596-IEI-7043-c5f73eb.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.
|
@@ -49,63 +49,6 @@ describe('Create item page - Desmos graphing: Preview contents', () => {
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
it('Question instructions should be visible', () => {
|
|
54
|
-
utilities.verifyInnerText(desmosGraphingPage.questionInstructionsText(), 'Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
|
55
|
-
utilities.verifyElementVisibilityState(desmosGraphingPage.questionInstructionsText(), 'visible');
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
it('The Graphing tool and pre-defined expression should be displayed', () => {
|
|
59
|
-
utilities.verifyElementVisibilityState(desmosGraphingPage.desmosGraphingTool(), 'exist');
|
|
60
|
-
utilities.verifyElementVisibilityState(desmosGraphingPage.previewTabDesmosToolGraph(), 'exist');
|
|
61
|
-
utilities.verifyElementVisibilityState(desmosGraphingPage.previewTabDesmosToolKeypadButton(), 'exist');
|
|
62
|
-
desmosGraphingPage.steps.verifyInputInTextAreaField('52');
|
|
63
|
-
desmosGraphingPage.steps.verifyDesmosGraphingOutput('25');
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
views.forEach((view) => {
|
|
69
|
-
describe(`Preview tab contents when the user checks the \'Hide expression list\' checkbox- ${view}`, { tags: 'smoke' }, () => {
|
|
70
|
-
abortEarlySetup();
|
|
71
|
-
before(() => {
|
|
72
|
-
switch (view) {
|
|
73
|
-
case 'Question preview':
|
|
74
|
-
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
|
75
|
-
cy.barsPreLoaderWait();
|
|
76
|
-
utilities.verifyElementVisibilityState(desmosGraphingPage.previewTabDesmosToolKeypadButton(), 'visible');
|
|
77
|
-
desmosGraphingPage.steps.addQuestionInstructions();
|
|
78
|
-
desmosGraphingPage.steps.clickOnDesmosToolKeypadButton();
|
|
79
|
-
desmosGraphingPage.steps.clickOnDesmosToolKeypadKeys('5');
|
|
80
|
-
desmosGraphingPage.steps.clickOnDesmosToolKeypadKeys('Squared');
|
|
81
|
-
desmosGraphingPage.steps.allotPoints(10);
|
|
82
|
-
desmosGraphingPage.steps.checkHideExpressionListCheckbox();
|
|
83
|
-
desmosGraphingPage.steps.switchToPreviewTab();
|
|
84
|
-
break;
|
|
85
|
-
case 'Item view':
|
|
86
|
-
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
|
87
|
-
break;
|
|
88
|
-
case 'Item preview':
|
|
89
|
-
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
|
90
|
-
desmosGraphingPage.steps.switchToPreviewTab();
|
|
91
|
-
break;
|
|
92
|
-
case 'Student view':
|
|
93
|
-
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
|
94
|
-
break;
|
|
95
|
-
default:
|
|
96
|
-
throw new Error('Invalid view');
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
after(() => {
|
|
101
|
-
if (view === 'Question preview') {
|
|
102
|
-
desmosGraphingPage.steps.clickOnSaveQuestionButton();
|
|
103
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
|
104
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
|
|
109
52
|
it('Question instructions should be visible', () => {
|
|
110
53
|
utilities.verifyInnerText(desmosGraphingPage.questionInstructionsText(), 'Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
|
111
54
|
utilities.verifyElementVisibilityState(desmosGraphingPage.questionInstructionsText(), 'visible');
|