itemengine-cypress-automation 1.0.382 → 1.0.384-constructed-response-r2-8ff5be4.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.
@@ -137,6 +137,7 @@ describe('Drawing response - Additional settings', () => {
137
137
  before(() => {
138
138
  drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
139
139
  cy.barsPreLoaderWait();
140
+ drawingResponsePage.steps.switchToEditTab();
140
141
  drawingResponsePage.steps.expandAdditionalSettings();
141
142
  });
142
143
 
@@ -273,7 +273,6 @@ describe('Create item page - Drawing response: Background: Blank canvas, Image,
273
273
 
274
274
  it('When the user adds an image file and file upload is inprogress, file name and progress bar should be displayed below \'File name\' label. Progress bar should disappear once file is uploaded', () => {
275
275
  drawingResponsePage.steps.uploadFile('uploads/image.png');
276
- utilities.verifyElementVisibilityState(drawingResponsePage.fileUploadProgressBar(), 'visible');
277
276
  utilities.verifyInnerText(drawingResponsePage.uploadedFileNameLabel(), 'image.png');
278
277
  utilities.verifyElementVisibilityState(drawingResponsePage.uploadedFileNameLabel(), 'visible');
279
278
  utilities.verifyElementVisibilityState(drawingResponsePage.fileUploadProgressBar(), 'notExist');
@@ -585,6 +585,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
585
585
  it('When the user has modified contents in the \'Fill color\' section in the edit tab, the updates should be displayed in the \'Fill color\' popup in the preview tab', () => {
586
586
  drawingResponsePage.steps.switchToPreviewTab();
587
587
  drawingResponsePage.steps.selectPreviewTabToolbarOption(`${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[11].displayName}`);
588
+ drawingResponsePage.steps.selectPreviewTabToolbarOption(`${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[11].displayName}`);
588
589
  drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Fill color');
589
590
  drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(0, 'rgb(255, 0, 0)');
590
591
  drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(1, 'rgb(6, 255, 172)');
@@ -266,9 +266,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
266
266
  });
267
267
 
268
268
  it('When user clicks on \'Capture Image\' then display Capture Image container should be visible', () => {
269
- drawingResponsePage.steps.selectPreviewTabToolbarOption(
270
- drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[4].displayName
271
- );
269
+ drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[4].displayName);
272
270
  drawingResponsePage.steps.verifyCaptureImageContainerIsVisible();
273
271
  });
274
272
 
@@ -48,8 +48,8 @@ const selectors = {
48
48
  uploadTranscriptFileLabel: () => cy.get('.upload-transcript-opt-label'),
49
49
  uploadTranscriptFileRadioButton: () => cy.get('.upload-transcript-opt-label input'),
50
50
  typeInTranscriptLabel: () => cy.get('.type-in-transcript-opt-label'),
51
- typeInTranscriptRadioButton: () => cy.get('.type-in-transcript-opt-label input'),
52
- transcriptInputField: () => cy.get('.freeResponseAudioFormTextInput textarea[aria-label="Transcript"]'),
51
+ typeInTranscriptRadioButton: () => cy.get('[aria-label="Type in transcript"][type="radio"]'),
52
+ transcriptInputField: () => cy.get('[title="Transcript"]'),
53
53
  allowStudentsToDownloadAudioLabel: () => cy.get('.allow-students-to-download-audio .MuiFormControlLabel-label').eq(0),
54
54
  allowStudentsToDownloadAudioCheckbox: () => cy.get('.allow-students-to-download-audio input'),
55
55
  limitPlayAttemptsLabel: () => cy.get('.allow-students-to-download-audio .MuiFormControlLabel-label').eq(1),
@@ -265,6 +265,8 @@ const steps = {
265
265
  selectPreviewTabToolbarOption: (arialabel) => {
266
266
  drawingResponsePage.previewTabDrawingToolbarOption(arialabel)
267
267
  .click();
268
+ drawingResponsePage.previewTabDrawingToolbarOption(arialabel)
269
+ .should('have.class', 'drawing-tool__button--active');
268
270
  },
269
271
 
270
272
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.382",
3
+ "version": "1.0.384-constructed-response-r2-8ff5be4.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -52,4 +52,4 @@
52
52
  "devDependencies": {
53
53
  "@applitools/eyes-cypress": "^3.47.0"
54
54
  }
55
- }
55
+ }