itemengine-cypress-automation 1.0.445-IEI-6457-178662c.0 → 1.0.445

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.
@@ -10,13 +10,12 @@ const sortEnable = ['have.class', 'have.class', 'have.class', 'not.have.class'];
10
10
  const sortDisable = ['not.have.class', 'not.have.class', 'not.have.class', 'not.have.class'];
11
11
  const allowedFilterCategories = {
12
12
  'Multiple choice selection': [
13
- 'single selection',
14
- 'multiple selection'
13
+ 'multiple selection',
14
+ 'single selection'
15
15
  ],
16
16
  'Fill in the gaps': [
17
17
  'fill in the gaps with text',
18
- 'fill in the gaps with drag and drop',
19
- 'fill in the gaps over image with text'
18
+ 'fill in the gaps with drag and drop'
20
19
  ],
21
20
  'Drag and drop': [
22
21
  'drag and drop into categories'
@@ -30,10 +29,6 @@ const allowedFilterCategories = {
30
29
  'Math response': [
31
30
  'Text Entry Math'
32
31
  ],
33
- 'Graph and chart': [
34
- 'Graphing',
35
- 'charts'
36
- ]
37
32
  };
38
33
 
39
34
  describe('Navigate to Think Sphere Browse Review Items page and view the page contents', () => {
@@ -42,14 +37,11 @@ describe('Navigate to Think Sphere Browse Review Items page and view the page co
42
37
  randomItemName = `~zzz thinksphere item name ${uuid()}`;
43
38
  cy.loginAs('admin');
44
39
  cy.createThinkSphereItem(randomItemName);
45
- cy.deleteThinkSphereItem('~zzz item name');
46
- cy.createThinkSphereItem('~zzz item name');
47
40
  browseItemsPage.steps.navigateToReviewItemsPage();
48
41
  });
49
42
 
50
43
  after(() => {
51
44
  cy.deleteThinkSphereItem(randomItemName);
52
- cy.deleteThinkSphereItem('~zzz item name');
53
45
  });
54
46
 
55
47
  describe('\'Browse ThinkSphere Review Items\' page header section', () => {
@@ -66,15 +58,6 @@ describe('Navigate to Think Sphere Browse Review Items page and view the page co
66
58
  /**@TODO Add check for when user click on browse thinksphere review items create item button */
67
59
  });
68
60
 
69
- it('Info text above filter and search bar should be visible and contain correct information', () => {
70
- const supportedQuestion = Object.values(allowedFilterCategories).flat().map(type => {
71
- // Capitalize only the first letter of the string
72
- return type.charAt(0).toUpperCase() + type.slice(1).toLowerCase();
73
- }).join(', ');
74
- utilities.verifyElementVisibilityState(browseItemsPage.infoText(), 'exist');
75
- utilities.verifyInnerText(browseItemsPage.infoText(), `The list below displays only \"Check your math\" question. The supported question types included are: ${supportedQuestion}.`);
76
- });
77
-
78
61
  it('CSS of \'Browse ThinkSphere Review Items\' page header section', { tags: 'css' }, () => {
79
62
  utilities.verifyCSS(browseItemsPage.browseItemPageHeaderActionWrapper(), {
80
63
  'border-bottom': `1px solid ${css.color.secondaryBtnBorder}`,
@@ -73,7 +73,7 @@ describe('Edit Question and edit item', () => {
73
73
  cy.deleteThinkSphereItem(uuidString);
74
74
  });
75
75
 
76
- describe('Edit question', () => {
76
+ describe('Edit question', { tags: 'smoke' }, () => {
77
77
  abortEarlySetup();
78
78
  it('When user edits the question instructions, then the changes should be saved successfully and edited question instruction should get displayed in preview side', () => {
79
79
  thinkSpherePage.steps.clickOnEditThinkSphereItem();
@@ -149,7 +149,7 @@ describe('Edit Question and edit item', () => {
149
149
  });
150
150
  });
151
151
 
152
- describe('Edit review question', () => {
152
+ describe('Edit review question', { tags: 'smoke' }, () => {
153
153
  abortEarlySetup();
154
154
  before(() => {
155
155
  browseItemsPage.steps.clickOnAddReviewItem();
@@ -15,7 +15,6 @@ const selectors = {
15
15
  allTableRow: () => cy.get('[data-testid*="MUIDataTableBodyRow"]'),
16
16
  buttonCreateItem: () => cy.get('.browse-item-header-action-wrapper .ngie-btn-contained[role="button"]'),
17
17
  buttonCancelCreateQuestion: () => cy.get('.browse-item-header-action-wrapper .ngie-btn-outlined'),
18
- infoText: () => cy.get('[class*="ItemListstyles__InfoWrapperText"]'),
19
18
  tableColumnHeader: (columnNumber) => utilities.getNthElement(cy.get('div[class*="TableHeaderstyles__FlexWrapper"]'), columnNumber),
20
19
  tableRow: (rowNumber) => utilities.getNthElement(cy.get('tr[data-testid*="MUIDataTableBodyRow"]'), rowNumber),
21
20
  itemCellItemTitle: () => utilities.getNthElement(cy.get('td[data-testid*="MuiDataTableBodyCell-0"]').find('button'), 0),
@@ -1044,7 +1043,7 @@ const tests = {
1044
1043
 
1045
1044
  verifySupportedQuestionsInItemsList: (allowedFilterCategories) => {
1046
1045
  it('The items list page should display items for only the supported question types', () => {
1047
- const allowedTypes = Object.values(allowedFilterCategories).flat().map(type => type.toLowerCase());
1046
+ const allowedTypes = Object.values(allowedFilterCategories).flat();
1048
1047
  browseItemsPage.browseItemQuestionItem().each(($item) => {
1049
1048
  cy.wrap($item)
1050
1049
  .invoke('text')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.445-IEI-6457-178662c.0",
3
+ "version": "1.0.445",
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
+ }