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

NotesTabPane.js failed due to the text is broken up

    Details

    • Fix Priority:
      3

      Description

      Occurred on js-unit-jdk8 batch´╝Ü

       [exec] FAIL test/components/NotesTabPane.js
           [exec]   ??? NotesTabPane ??? display ??? displays a note with the create date
           [exec] 
           [exec]     Unable to find an element with the text: 4/12/2020, 3:40:22 PM. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
           [exec] 
           [exec]     [36m<body>[39m
           [exec]       [36m<div>[39m
           [exec]         [36m<div[39m
           [exec]           [33mclass[39m=[32m"notes-container"[39m
           [exec]         [36m>[39m
           [exec]           [36m<div[39m
           [exec]             [33mclass[39m=[32m"notes"[39m
           [exec]           [36m>[39m
           [exec]             [36m<div[39m
           [exec]               [33mclass[39m=[32m"pinned-notes"[39m
           [exec]             [36m>[39m
           [exec]               [36m<div[39m
           [exec]                 [33mclass[39m=[32m"notes-header"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<svg[39m
           [exec]                   [33maria-label[39m=[32m"pinned-notes-icon"[39m
           [exec]                 [36m>[39m
           [exec]                   [36m<use[39m
           [exec]                     [33mxlink:href[39m=[32m"#pin"[39m
           [exec]                   [36m/>[39m
           [exec]                 [36m</svg>[39m
           [exec]                 [0mpinned[0m
           [exec]               [36m</div>[39m
           [exec]               [36m<div[39m
           [exec]                 [33mclass[39m=[32m"note"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<div[39m
           [exec]                   [33mclass[39m=[32m"note-metadata"[39m
           [exec]                 [36m>[39m
           [exec]                   [36m<span[39m
           [exec]                     [33mclass[39m=[32m"sticker sticker-circle sticker-secondary sticker-md"[39m
           [exec]                   [36m>[39m
           [exec]                     [36m<span[39m
           [exec]                       [33mclass[39m=[32m"sticker-overlay"[39m
           [exec]                     [36m>[39m
           [exec]                       [36m<img[39m
           [exec]                         [33malt[39m=[32m"note-author-avatar"[39m
           [exec]                         [33mclass[39m=[32m"sticker-img"[39m
           [exec]                         [33msrc[39m=[32m"/"[39m
           [exec]                       [36m/>[39m
           [exec]                     [36m</span>[39m
           [exec]                   [36m</span>[39m
           [exec]                   [36m<div[39m
           [exec]                     [33mclass[39m=[32m"metadata"[39m
           [exec]                   [36m>[39m
           [exec]                     [36m<h4[39m
           [exec]                       [33mclass[39m=[32m"note-author"[39m
           [exec]                     [36m>[39m
           [exec]                       [0mJane Doe[0m
           [exec]                     [36m</h4>[39m
           [exec]                     [36m<div[39m
           [exec]                       [33mclass[39m=[32m"note-create-date"[39m
           [exec]                     [36m>[39m
           [exec]                       [0m4/12/2020, 3:40:21 PM[0m
           [exec]                     [36m</div>[39m
           [exec]                   [36m</div>[39m
           [exec]                 [36m</div>[39m
           [exec]                 [36m<section[39m
           [exec]                   [33mclass[39m=[32m"note-content"[39m
           [exec]                 [36m>[39m
           [exec]                   [36m<div>[39m
           [exec]                     [0mnote 1[0m
           [exec]                   [36m</div>[39m
           [exec]                 [36m</section>[39m
           [exec]               [36m</div>[39m
           [exec]             [36m</div>[39m
           [exec]             [36m<div[39m
           [exec]               [33mclass[39m=[32m"general-notes"[39m
           [exec]             [36m>[39m
           [exec]               [36m<div[39m
           [exec]                 [33mclass[39m=[32m"notes-header"[39m
           [exec]               [36m>[39m
           [exec]                 [0mgeneral[0m
           [exec]               [36m</div>[39m
           [exec]               [36m<div[39m
           [exec]                 [33mclass[39m=[32m"note"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<div[39m
           [exec]                   [33mclass[39m=[32m"note-metadata"[39m
           [exec]                 [36m>[39m
           [exec]                   [36m<span[39m
           [exec]                     [33mclass[39m=[32m"sticker sticker-circle sticker-secondary sticker-md"[39m
           [exec]                   [36m>[39m
           [exec]                     [36m<span[39m
           [exec]                       [33mclass[39m=[32m"sticker-overlay"[39m
           [exec]                     [36m>[39m
           [exec]                       [36m<img[39m
           [exec]                         [33malt[39m=[32m"note-author-avatar"[39m
           [exec]                         [33mclass[39m=[32m"sticker-img"[39m
           [exec]                         [33msrc[39m=[32m"/"[39m
           [exec]                       [36m/>[39m
           [exec]                     [36m</span>[39m
           [exec]                   [36m</span>[39m
           [exec]                   [36m<div[39m
           [exec]                     [33mclass[39m=[32m"metadata"[39m
           [exec]                   [36m>[39m
           [exec]                     [36m<h4[39m
           [exec]                       [33mclass[39m=[32m"note-author"[39m
           [exec]                     [36m>[39m
           [exec]                       [0mJane Doe[0m
           [exec]                     [36m</h4>[39m
           [exec]                     [36m<div[39m
           [exec]                       [33mclass[39m=[32m"note-create-date"[39m
           [exec]                     [36m>[39m
           [exec]                       [0m4/12/2020, 3:40:21 PM[0m
           [exec]                     [36m</div>[39m
           [exec]                   [36m</div>[39m
           [exec]                 [36m</div>[39m
           [exec]                 [36m<section[39m
           [exec]                   [33mclass[39m=[32m"note-content"[39m
           [exec]                 [36m>[39m
           [exec]                   [36m<div>[39m
           [exec]                     [0mnote 2[0m
           [exec]                   [36m</div>[39m
           [exec]                 [36m</section>[39m
           [exec]               [36m</div>[39m
           [exec]             [36m</div>[39m
           [exec]             [0m[0m
           [exec]           [36m</div>[39m
           [exec]           [36m<button[39m
           [exec]             [33mclass[39m=[32m"archive-btn btn btn-link"[39m
           [exec]           [36m>[39m
           [exec]             [0mview-archived-notes[0m
           [exec]             [0m [0m
           [exec]             [36m<svg[39m
           [exec]               [33maria-label[39m=[32m"view-archived-notes-link"[39m
           [exec]               [33mrole[39m=[32m"img"[39m
           [exec]             [36m>[39m
           [exec]               [36m<use[39m
           [exec]                 [33mxlink:href[39m=[32m"#angle-right"[39m
           [exec]               [36m/>[39m
           [exec]             [36m</svg>[39m
           [exec]           [36m</button>[39m
           [exec]         [36m</div>[39m
           [exec]       [36m</div>[39m
           [exec]     [36m</body>[39m
           [exec] 
           [exec]       72 | 			const {getAllByText} = renderNotesTabPane();
           [exec]       73 | 
           [exec]     > 74 | 			getAllByText(new Date().toLocaleString('en-US'));
           [exec]          | 			^
           [exec]       75 | 		});
           [exec]       76 | 
           [exec]       77 | 		it('displays a pinned note', () => {
           [exec] 
           [exec]       at getElementError (../../../node_modules/@testing-library/dom/dist/query-helpers.js:46:10)
           [exec]       at args (../../../node_modules/@testing-library/dom/dist/query-helpers.js:100:13)
           [exec]       at Object.getAllByText (test/components/NotesTabPane.js:74:4)
      

      Full console log:
      https://test-1-6.liferay.com/job/test-portal-acceptance-pullrequest-batch(7.2.x)/AXIS_VARIABLE=0,label_exp=!master/16973/consoleFull

        Attachments

          Activity

            People

            Assignee:
            della.wang Della Wang
            Reporter:
            della.wang Della Wang
            Participants of an Issue:
            Recent user:
            Della Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              13 weeks, 5 days ago

                Packages

                Version Package