itemengine-cypress-automation 1.0.474-IEI-6720-7bc70b3.0 → 1.0.474-IEI-6720-4f58e96.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.
@@ -6,8 +6,8 @@ const options = ['Animal', 'Vehicle', 'Birds', 'Insects'];
6
6
 
7
7
  let itemReferenceID = '';
8
8
 
9
- describe('Multiple selection - Response mode toggle', () => {
10
- describe('response mode toggle', () => {
9
+ describe('Create item page - Multiple selection : Response mode toggle', () => {
10
+ describe('Test response mode toggle contents and Functionality', () => {
11
11
  before(() => {
12
12
  cy.loginAs('admin');
13
13
  multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
@@ -21,27 +21,24 @@ describe('Multiple selection - Response mode toggle', () => {
21
21
  cy.deleteItem(itemReferenceID);
22
22
  cy.logout();
23
23
  });
24
-
25
- it('should load multiple selection create page with responseMode toggle button', () => {
26
- });
27
24
 
28
- it('should be able to change responseMode when no answer is provided', () => {
25
+ it('When no answer is selected, then user should be able to change responseMode', () => {
29
26
  responseModeToggle.tests.shouldChangeResponseMode('Multiple selection', 'Single selection');
30
27
  });
31
28
 
32
- it('should not be able to change responseMode when an answer is provided', () => {
29
+ it('When answer is selected, then user should not be able to change responseMode', () => {
33
30
  responseModeToggle.tests.shouldChangeResponseMode('Single selection', 'Multiple selection');
34
31
  multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
35
32
  responseModeToggle.tests.shouldWarnResponseModeChange('Multiple selection', 'Single selection', false);
36
33
  });
37
34
 
38
- it('should be able to change response mode when warning popup is accepted', () => {
35
+ it('When response mode change is accepted, then change response mode should change after accepting', () => {
39
36
  responseModeToggle.tests.shouldWarnResponseModeChange('Multiple selection', 'Single selection', true);
40
37
  responseModeToggle.tests.shouldChangeResponseMode('Single selection', 'Multiple selection');
41
38
  multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
42
39
  });
43
40
 
44
- it('should be able to change response mode of a saved item and save with different question type', () => {
41
+ it('When an item is saved and it is edited to different have different response Mode, then user should be able to change response mode of a saved item and save with different question type', () => {
45
42
  multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
46
43
  cy.wait(5000).then(() => {
47
44
  itemPreviewPage.referenceID().invoke('text').then(($text) => {
@@ -6,8 +6,8 @@ const options = ['Animal', 'Vehicle', 'Birds', 'Insects'];
6
6
 
7
7
  let itemReferenceID = '';
8
8
 
9
- describe('Single selection - Response mode toggle', () => {
10
- describe('response mode toggle', () => {
9
+ describe('Create item page - Single selection : Response mode toggle', () => {
10
+ describe('Test response mode toggle contents and Functionality', () => {
11
11
  before(() => {
12
12
  cy.loginAs('admin');
13
13
  singleSelectionPage.steps.navigateToCreateQuestion('single selection');
@@ -21,27 +21,24 @@ describe('Single selection - Response mode toggle', () => {
21
21
  cy.deleteItem(itemReferenceID);
22
22
  cy.logout();
23
23
  });
24
-
25
- it('should load Single selection create page with responseMode toggle button', () => {
26
- });
27
24
 
28
- it('should be able to change responseMode when no answer is provided', () => {
25
+ it('When no answer is selected, then user should be able to change responseMode', () => {
29
26
  responseModeToggle.tests.shouldChangeResponseMode('Single selection', 'Multiple selection');
30
27
  });
31
28
 
32
- it('should not be able to change responseMode when an answer is provided', () => {
29
+ it('When answer is selected, then user should not be able to change responseMode', () => {
33
30
  responseModeToggle.tests.shouldChangeResponseMode('Multiple selection', 'Single selection');
34
31
  singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
35
32
  responseModeToggle.tests.shouldWarnResponseModeChange('Single selection', 'Multiple selection', false);
36
33
  });
37
34
 
38
- it('should be able to change response mode when warning popup is accepted', () => {
35
+ it('When response mode change is accepted, then change response mode should change after accepting', () => {
39
36
  responseModeToggle.tests.shouldWarnResponseModeChange('Single selection', 'Multiple selection', true);
40
37
  responseModeToggle.tests.shouldChangeResponseMode('Multiple selection', 'Single selection');
41
38
  singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
42
39
  });
43
40
 
44
- it('should be able to change response mode of a saved item and save with different question type', () => {
41
+ it('When an item is saved and it is edited to different have different response Mode, then user should be able to change response mode of a saved item and save with different question type', () => {
45
42
  singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
46
43
  cy.wait(5000).then(() => {
47
44
  itemPreviewPage.referenceID().invoke('text').then(($text) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.474-IEI-6720-7bc70b3.0",
3
+ "version": "1.0.474-IEI-6720-4f58e96.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {