Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-109386

Js-unit test failure on LinkConfigurationPanel.test.js

    Details

      Description

      https://testray.liferay.com/home/-/testray/case_results/1024076878

       [exec] FAIL test/page_editor/app/components/LinkConfigurationPanel.test.js (22.615s)
           [exec]   ??? LinkPanel ??? clear the config when changing source type
           [exec] 
           [exec]     expect(received).toEqual(expected) // deep equality
           [exec] 
           [exec]     - Expected  - 1
           [exec]     + Received  + 3
           [exec] 
           [exec]     - Object {}
           [exec]     + Object {
           [exec]     +   "mapperType": "link",
           [exec]     + }
           [exec] 
           [exec]       213 | 		});
           [exec]       214 | 
           [exec]     > 215 | 		expect(editableConfig).toEqual({});
           [exec]           | 		                       ^
           [exec]       216 | 
           [exec]       217 | 		expect(getByLabelText(document.body, 'url')).toHaveValue('');
           [exec]       218 | 		expect(getByLabelText(document.body, 'target')).toHaveValue('_blank');
           [exec] 
           [exec]       at Object.toEqual (test/page_editor/app/components/LinkConfigurationPanel.test.js:215:26)
           [exec] 
           [exec]   ??? LinkPanel ??? calls dispatch with the href value typed in manual mode
           [exec] 
           [exec]     expect(received).toEqual(expected) // deep equality
           [exec] 
           [exec]     - Expected  - 0
           [exec]     + Received  + 1
           [exec] 
           [exec]       Object {
           [exec]         "href": "http://google.com",
           [exec]     +   "mapperType": "link",
           [exec]       }
           [exec] 
           [exec]       237 | 		expect(updateEditableValues).toHaveBeenCalled();
           [exec]       238 | 
           [exec]     > 239 | 		expect(editableConfig).toEqual({href: 'http://google.com'});
           [exec]           | 		                       ^
           [exec]       240 | 	});
           [exec]       241 | });
           [exec]       242 | 
           [exec] 
           [exec]       at Object.toEqual (test/page_editor/app/components/LinkConfigurationPanel.test.js:239:26)
      

      Full console log:
      https://testray.liferay.com/reports/production/logs/test-1-2/1582781782173/test-portal-testsuite-upstream(master)/207/js-unit-jdk8/0/jenkins-console.txt.gz

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              joyce.wang Joyce Wang
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                40 weeks, 1 day ago

                  Packages

                  Version Package
                  7.3.1 CE GA2
                  7.3.2 CE GA3
                  7.3.10 DXP GA1
                  Master