itemengine-cypress-automation 1.0.273-cssUpdates12Dec-cecd1ee.0 → 1.0.275-cssUpdates12Dec-bbaeace.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,15 +35,15 @@ describe('Create Item page - Single Selection: Header section and Saving questio
35
35
  singleSelectionPage.tests.verifyCancelButton('single selection');
36
36
  });
37
37
 
38
- describe.only('Save Question button', () => {
38
+ describe('Save Question button', () => {
39
39
  abortEarlySetup();
40
40
  before(() => {
41
41
  singleSelectionPage.steps.navigateToCreateQuestion('single selection');
42
42
  cy.barsPreLoaderWait();
43
43
  //Adding a temperory fix to wait for the options to load https://redmine.zeuslearning.com/issues/584236
44
- // utilities.verifyElementCount(singleSelectionPage.optionWrapper(), 4);
45
- // singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
46
- // singleSelectionPage.steps.clearQuestionInstructionsInputField();
44
+ utilities.verifyElementCount(singleSelectionPage.optionWrapper(), 4);
45
+ singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
46
+ singleSelectionPage.steps.clearQuestionInstructionsInputField();
47
47
  });
48
48
 
49
49
  describe('Validation error messages', () => {
@@ -7,15 +7,21 @@ const selectors = {
7
7
 
8
8
  const steps = {
9
9
  submitResponse: () => {
10
+ cy.log('Adding wait to make sure the answers are added')
11
+ cy.wait(1000);
10
12
  studentViewPage.submitButton()
11
13
  .click();
14
+ cy.log('Adding wait to make sure the answers is submitted')
15
+ cy.wait(1000);
12
16
  },
13
17
 
14
18
  clickOnGoToGradingViewButton: () => {
19
+ cy.wait(1000);
15
20
  studentViewPage.buttonGoToGradingView()
16
21
  .click();
17
22
  cy.url()
18
23
  .should('contain', 'grading-view');
24
+ cy.wait(1000);
19
25
  },
20
26
 
21
27
  clearResponses: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.273-cssUpdates12Dec-cecd1ee.0",
3
+ "version": "1.0.275-cssUpdates12Dec-bbaeace.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {