Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-108484 Migrate Select ddm-form-field-type to React
  3. LPS-111520

js-unit test failures on :apps:dynamic-data-mapping:dynamic-data-mapping-form-builder:packageRunTest

    Details

      Description

      snippet:

           [exec] > Task :apps:dynamic-data-mapping:dynamic-data-mapping-form-builder:packageRunTest FAILED
           [exec] FAIL test/js/components/Sidebar/Sidebar.es.js (6.352s)
           [exec]   ??? Sidebar ??? Changing field type ??? keeps basic properties after changing field type
           [exec] 
           [exec]     expect(jest.fn()).toHaveBeenCalledWith(...expected)
           [exec] 
           [exec]     - Expected
           [exec]     + Received
           [exec] 
           [exec]       "focusedFieldEvaluationEnded",
           [exec]     @@ -17,30 +17,34 @@
           [exec]                   "columns": Array [
           [exec]                     Object {
           [exec]                       "fields": Array [
           [exec]                         Object {
           [exec]                           "fieldName": "label",
           [exec]     +                     "instanceId": "wwgnSwfF",
           [exec]                           "localizable": true,
           [exec]                           "localizedValue": Object {
           [exec]                             "en_US": "Text Field",
           [exec]                           },
           [exec]                           "type": "text",
           [exec]                           "value": "Text Field",
           [exec]                           "visible": true,
           [exec]                         },
           [exec]                         Object {
           [exec]                           "fieldName": "name",
           [exec]     +                     "instanceId": "qkE6APsh",
           [exec]                           "value": "TextField",
           [exec]                           "visible": true,
           [exec]                         },
           [exec]                         Object {
           [exec]                           "fieldName": "required",
           [exec]     +                     "instanceId": "SBkWSa8N",
           [exec]                           "value": true,
           [exec]                           "visible": true,
           [exec]                         },
           [exec]                         Object {
           [exec]                           "fieldName": "showLabel",
           [exec]     +                     "instanceId": "sujfcHc0",
           [exec]                           "value": true,
           [exec]                           "visible": false,
           [exec]                         },
           [exec]                       ],
           [exec]                     },,
           [exec] 
           [exec]     Number of calls: 1
           [exec] 
           [exec]       466 | 			};
           [exec]       467 | 
           [exec]     > 468 | 			expect(component.context.dispatch).toHaveBeenCalledWith(
           [exec]           | 			                                   ^
           [exec]       469 | 				'focusedFieldEvaluationEnded',
           [exec]       470 | 				changedFieldType
           [exec]       471 | 			);
           [exec] 
           [exec]       at Object.toHaveBeenCalledWith (test/js/components/Sidebar/Sidebar.es.js:468:39)
           [exec] 
           [exec]   ??? Sidebar ??? Changing field type ??? does not keep validation settings between field type
           [exec] 
           [exec]     expect(jest.fn()).toHaveBeenCalledWith(...expected)
           [exec] 
           [exec]     - Expected
           [exec]     + Received
           [exec] 
           [exec]       "focusedFieldEvaluationEnded",
           [exec]     @@ -17,30 +17,34 @@
           [exec]                   "columns": Array [
           [exec]                     Object {
           [exec]                       "fields": Array [
           [exec]                         Object {
           [exec]                           "fieldName": "label",
           [exec]     +                     "instanceId": "1usymdfl",
           [exec]                           "localizable": true,
           [exec]                           "localizedValue": Object {
           [exec]                             "en_US": "Text Field",
           [exec]                           },
           [exec]                           "type": "text",
           [exec]                           "value": "Text Field",
           [exec]                           "visible": true,
           [exec]                         },
           [exec]                         Object {
           [exec]                           "fieldName": "name",
           [exec]     +                     "instanceId": "0zmTZjLq",
           [exec]                           "value": "TextField",
           [exec]                           "visible": true,
           [exec]                         },
           [exec]                         Object {
           [exec]                           "fieldName": "required",
           [exec]     +                     "instanceId": "jcRr5qj6",
           [exec]                           "value": true,
           [exec]                           "visible": true,
           [exec]                         },
           [exec]                         Object {
           [exec]                           "fieldName": "showLabel",
           [exec]     +                     "instanceId": "mBlbaySH",
           [exec]                           "value": true,
           [exec]                           "visible": false,
           [exec]                         },
           [exec]                       ],
           [exec]                     },,
           [exec] 
           [exec]     Number of calls: 1
           [exec] 
           [exec]       533 | 				)
           [exec]       534 | 			).not.toEqual('a=b');
           [exec]     > 535 | 			expect(component.context.dispatch).toHaveBeenCalledWith(
           [exec]           | 			                                   ^
           [exec]       536 | 				'focusedFieldEvaluationEnded',
           [exec]       537 | 				changedFieldType
           [exec]       538 | 			);
           [exec] 
           [exec]       at Object.toHaveBeenCalledWith (test/js/components/Sidebar/Sidebar.es.js:535:39)
           [exec] 
           [exec] Test Suites: 1 failed, 11 passed, 12 total
           [exec] Tests:       2 failed, 79 passed, 81 total
           [exec] Snapshots:   19 passed, 19 total
           [exec] Time:        17.104s
           [exec] Ran all test suites. 

      full log: https://test-1-22.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/256841/AXIS_VARIABLE=0,label_exp=!master/consoleFull

        Attachments

          Activity

            People

            Assignee:
            matuzalem.teles Matuzalém Teles
            Reporter:
            john.co John Co
            Recent user:
            John Co
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package