itemengine-cypress-automation 1.0.593-IEI-7195-e139b3f.0 → 1.0.593-IEI-7195-92ba6d8.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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { chartsBarPage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
|
|
4
|
+
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
|
|
5
|
+
|
|
4
6
|
describe('Create Item page - Charts Bar', () => {
|
|
5
7
|
before(() => {
|
|
6
8
|
cy.loginAs('admin');
|
|
@@ -27,7 +29,11 @@ describe('Create Item page - Charts Bar', () => {
|
|
|
27
29
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 3, range: 10 });
|
|
28
30
|
chartsBarPage.steps.switchToGradingView();
|
|
29
31
|
chartsBarPage.steps.verifyAnswerStatusBannerExist();
|
|
30
|
-
|
|
32
|
+
if (!alternativeAnswerCheck) {
|
|
33
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionExist();
|
|
34
|
+
} else {
|
|
35
|
+
chartsBarPage.steps.verifyAlternateAnswerSectionExist();
|
|
36
|
+
}
|
|
31
37
|
});
|
|
32
38
|
});
|
|
33
39
|
});
|
|
@@ -1369,6 +1369,11 @@ const steps = {
|
|
|
1369
1369
|
},
|
|
1370
1370
|
|
|
1371
1371
|
verifyCorrectAnswerSectionExist: () => {
|
|
1372
|
+
chartsBarPage.correctAnswersLabel()
|
|
1373
|
+
.should('be.visible');
|
|
1374
|
+
},
|
|
1375
|
+
|
|
1376
|
+
verifyAlternateAnswerSectionExist: () => {
|
|
1372
1377
|
chartsBarPage.correctAnswerlabelWrapper()
|
|
1373
1378
|
.should('be.visible');
|
|
1374
1379
|
},
|