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

JS-Unit failure in SegmentsExperimentsSidebar

    Details

      Description

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

           [exec] FAIL test/js/components/SegmentsExperimentsSidebar.es.js
           [exec]   ??? SegmentsExperimentsSidebar ??? renders modal to create experiment when the user clicks on create test button
           [exec] 
           [exec]     Unable to find an element with the text: create-new-test. 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]       [33mclass[39m=[32m"modal-open"[39m
           [exec]     [36m>[39m
           [exec]       [36m<div>[39m
           [exec]         [36m<div[39m
           [exec]           [33mclass[39m=[32m"p-3"[39m
           [exec]         [36m>[39m
           [exec]           [36m<div[39m
           [exec]             [33mclass[39m=[32m"form-group"[39m
           [exec]           [36m>[39m
           [exec]             [36m<label>[39m
           [exec]               [0mselect-experience[0m
           [exec]             [36m</label>[39m
           [exec]             [36m<select[39m
           [exec]               [33mclass[39m=[32m"form-control"[39m
           [exec]             [36m>[39m
           [exec]               [36m<option[39m
           [exec]                 [33mselected[39m=[32m""[39m
           [exec]                 [33mvalue[39m=[32m"0"[39m
           [exec]               [36m>[39m
           [exec]                 [0mDefault[0m
           [exec]               [36m</option>[39m
           [exec]               [36m<option[39m
           [exec]                 [33mvalue[39m=[32m"1"[39m
           [exec]               [36m>[39m
           [exec]                 [0mExperience 1[0m
           [exec]               [36m</option>[39m
           [exec]             [36m</select>[39m
           [exec]           [36m</div>[39m
           [exec]           [36m<hr />[39m
           [exec]           [36m<div[39m
           [exec]             [33mclass[39m=[32m"text-center mt-2"[39m
           [exec]           [36m>[39m
           [exec]             [36m<h4[39m
           [exec]               [33mclass[39m=[32m"text-dark"[39m
           [exec]             [36m>[39m
           [exec]               [0mno-active-tests-were-found-for-the-selected-experience[0m
           [exec]             [36m</h4>[39m
           [exec]             [36m<p>[39m
           [exec]               [0mcreate-test-help-message[0m
           [exec]             [36m</p>[39m
           [exec]             [36m<button[39m
           [exec]               [33mclass[39m=[32m"btn btn-secondary"[39m
           [exec]               [33mtype[39m=[32m"button"[39m
           [exec]             [36m>[39m
           [exec]               [0mcreate-test[0m
           [exec]             [36m</button>[39m
           [exec]           [36m</div>[39m
           [exec]         [36m</div>[39m
           [exec]       [36m</div>[39m
           [exec]       [36m<div>[39m
           [exec]         [36m<div[39m
           [exec]           [33mclass[39m=[32m"modal-backdrop fade"[39m
           [exec]         [36m/>[39m
           [exec]         [36m<div[39m
           [exec]           [33mclass[39m=[32m"fade modal d-block"[39m
           [exec]         [36m>[39m
           [exec]           [36m<div[39m
           [exec]             [33mclass[39m=[32m"modal-lg"[39m
           [exec]             [33mstyle[39m=[32m"margin: auto;"[39m
           [exec]           [36m>[39m
           [exec]             [36m<div[39m
           [exec]               [33mclass[39m=[32m"modal-dialog modal-lg"[39m
           [exec]               [33mtabindex[39m=[32m"-1"[39m
           [exec]             [36m>[39m
           [exec]               [36m<div[39m
           [exec]                 [33mclass[39m=[32m"modal-content"[39m
           [exec]               [36m/>[39m
           [exec]             [36m</div>[39m
           [exec]           [36m</div>[39m
           [exec]         [36m</div>[39m
           [exec]       [36m</div>[39m
           [exec]     [36m</body>[39m
           [exec] 
           [exec]       169 | 		fireEvent.click(createTestButton);
           [exec]       170 | 
           [exec]     > 171 | 		const createNewTestTitle = getByText('create-new-test');
           [exec]           | 		                           ^
           [exec]       172 | 		expect(createNewTestTitle).not.toBe(null);
           [exec]       173 | 
           [exec]       174 | 		const testNameField = getByText('test-name');
           [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 args (../../../node_modules/@testing-library/dom/dist/query-helpers.js:83:17)
           [exec]       at Object.getByText (test/js/components/SegmentsExperimentsSidebar.es.js:171:30)
           [exec] 
           [exec]   ??? Run and review test ??? can view review Experiment Modal
           [exec] 
           [exec]     Unable to find an element with the value: 89.
           [exec] 
           [exec]     [36m<body[39m
           [exec]       [33mclass[39m=[32m"modal-open"[39m
           [exec]     [36m>[39m
           [exec]       [36m<div>[39m
           [exec]         [36m<div[39m
           [exec]           [33mclass[39m=[32m"p-3"[39m
           [exec]         [36m>[39m
           [exec]           [36m<div[39m
           [exec]             [33mclass[39m=[32m"form-group"[39m
           [exec]           [36m>[39m
           [exec]             [36m<label>[39m
           [exec]               [0mselect-experience[0m
           [exec]             [36m</label>[39m
           [exec]             [36m<select[39m
           [exec]               [33mclass[39m=[32m"form-control"[39m
           [exec]             [36m>[39m
           [exec]               [36m<option[39m
           [exec]                 [33mselected[39m=[32m""[39m
           [exec]                 [33mvalue[39m=[32m"0"[39m
           [exec]               [36m>[39m
           [exec]                 [0mDefault[0m
           [exec]               [36m</option>[39m
           [exec]               [36m<option[39m
           [exec]                 [33mvalue[39m=[32m"1"[39m
           [exec]               [36m>[39m
           [exec]                 [0mExperience 1[0m
           [exec]               [36m</option>[39m
           [exec]             [36m</select>[39m
           [exec]           [36m</div>[39m
           [exec]           [36m<hr />[39m
           [exec]           [36m<div[39m
           [exec]             [33mclass[39m=[32m"d-flex justify-content-between align-items-center"[39m
           [exec]           [36m>[39m
           [exec]             [36m<h4[39m
           [exec]               [33mclass[39m=[32m"mb-0 text-dark text-truncate"[39m
           [exec]             [36m>[39m
           [exec]               [0mExperiment 1[0m
           [exec]             [36m</h4>[39m
           [exec]             [36m<div[39m
           [exec]               [33mclass[39m=[32m"dropdown"[39m
           [exec]               [33mdata-testid[39m=[32m"segments-experiments-drop-down"[39m
           [exec]             [36m>[39m
           [exec]               [36m<button[39m
           [exec]                 [33maria-label[39m=[32m"show-actions"[39m
           [exec]                 [33mclass[39m=[32m"dropdown-toggle btn-monospaced btn btn-outline-borderless btn-outline-secondary"[39m
           [exec]                 [33mtype[39m=[32m"button"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<svg[39m
           [exec]                   [33mclass[39m=[32m"lexicon-icon lexicon-icon-ellipsis-v"[39m
           [exec]                   [33mrole[39m=[32m"presentation"[39m
           [exec]                 [36m>[39m
           [exec]                   [36m<use[39m
           [exec]                     [33mxlink:href[39m=[32m"#ellipsis-v"[39m
           [exec]                   [36m/>[39m
           [exec]                 [36m</svg>[39m
           [exec]               [36m</button>[39m
           [exec]             [36m</div>[39m
           [exec]           [36m</div>[39m
           [exec]           [36m<span[39m
           [exec]             [33mclass[39m=[32m"label label-secondary"[39m
           [exec]           [36m>[39m
           [exec]             [36m<span[39m
           [exec]               [33mclass[39m=[32m"label-item label-item-expand"[39m
           [exec]             [36m>[39m
           [exec]               [0mDraft[0m
           [exec]             [36m</span>[39m
           [exec]           [36m</span>[39m
           [exec]           [36m<h4[39m
           [exec]             [33mclass[39m=[32m"mb-3 mt-4 sheet-subtitle"[39m
           [exec]           [36m>[39m
           [exec]             [0mdetails[0m
           [exec]           [36m</h4>[39m
           [exec]           [36m<dl>[39m
           [exec]             [36m<div[39m
           [exec]               [33mclass[39m=[32m"d-flex"[39m
           [exec]             [36m>[39m
           [exec]               [36m<dt>[39m
           [exec]                 [0msegment:[0m
           [exec]                 [0m [0m
           [exec]               [36m</dt>[39m
           [exec]               [36m<dd[39m
           [exec]                 [33mclass[39m=[32m"text-secondary ml-2"[39m
           [exec]               [36m>[39m
           [exec]                 [0mSegment name[0m
           [exec]               [36m</dd>[39m
           [exec]             [36m</div>[39m
           [exec]             [36m<div[39m
           [exec]               [33mclass[39m=[32m"d-flex"[39m
           [exec]             [36m>[39m
           [exec]               [36m<dt>[39m
           [exec]                 [0mgoal:[0m
           [exec]                 [0m [0m
           [exec]               [36m</dt>[39m
           [exec]               [36m<dd[39m
           [exec]                 [33mclass[39m=[32m"text-secondary ml-2"[39m
           [exec]               [36m>[39m
           [exec]                 [0mTime On Page[0m
           [exec]               [36m</dd>[39m
           [exec]             [36m</div>[39m
           [exec]           [36m</dl>[39m
           [exec]           [36m<h4[39m
           [exec]             [33mclass[39m=[32m"mb-3 mt-4 sheet-subtitle"[39m
           [exec]           [36m>[39m
           [exec]             [0mvariants[0m
           [exec]           [36m</h4>[39m
           [exec]           [36m<button[39m
           [exec]             [33mclass[39m=[32m"mb-3 btn btn-secondary"[39m
           [exec]             [33mdata-testid[39m=[32m"create-variant"[39m
           [exec]             [33mtype[39m=[32m"button"[39m
           [exec]           [36m>[39m
           [exec]             [0mcreate-variant[0m
           [exec]           [36m</button>[39m
           [exec]           [36m<ul[39m
           [exec]             [33mclass[39m=[32m"list-group show-quick-actions-on-hover"[39m
           [exec]           [36m>[39m
           [exec]             [36m<li[39m
           [exec]               [33mclass[39m=[32m"active list-group-item list-group-item-flex"[39m
           [exec]             [36m>[39m
           [exec]               [36m<div[39m
           [exec]                 [33mclass[39m=[32m"autofit-col autofit-col-expand"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<p[39m
           [exec]                   [33mclass[39m=[32m"list-group-title"[39m
           [exec]                 [36m>[39m
           [exec]                   [36m<button[39m
           [exec]                     [33mclass[39m=[32m"lfr-portal-tooltip text-truncate btn btn-unstyled"[39m
           [exec]                     [33mdata-title[39m=[32m"Control"[39m
           [exec]                     [33mtype[39m=[32m"button"[39m
           [exec]                   [36m>[39m
           [exec]                     [36m<span[39m
           [exec]                       [33mclass[39m=[32m"mr-2"[39m
           [exec]                     [36m>[39m
           [exec]                       [0mvariant-control[0m
           [exec]                     [36m</span>[39m
           [exec]                     [36m<svg[39m
           [exec]                       [33mclass[39m=[32m"lexicon-icon lexicon-icon-lock"[39m
           [exec]                       [33mrole[39m=[32m"presentation"[39m
           [exec]                     [36m>[39m
           [exec]                       [36m<use[39m
           [exec]                         [33mxlink:href[39m=[32m"#lock"[39m
           [exec]                       [36m/>[39m
           [exec]                     [36m</svg>[39m
           [exec]                   [36m</button>[39m
           [exec]                 [36m</p>[39m
           [exec]               [36m</div>[39m
           [exec]             [36m</li>[39m
           [exec]             [36m<li[39m
           [exec]               [33mclass[39m=[32m"list-group-item list-group-item-flex"[39m
           [exec]             [36m>[39m
           [exec]               [36m<div[39m
           [exec]                 [33mclass[39m=[32m"autofit-col autofit-col-expand"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<p[39m
           [exec]                   [33mclass[39m=[32m"list-group-title"[39m
           [exec]                 [36m>[39m
           [exec]                   [36m<button[39m
           [exec]                     [33mclass[39m=[32m"lfr-portal-tooltip text-truncate btn btn-unstyled"[39m
           [exec]                     [33mdata-title[39m=[32m"Variant 1"[39m
           [exec]                     [33mtype[39m=[32m"button"[39m
           [exec]                   [36m>[39m
           [exec]                     [0mVariant 1[0m
           [exec]                   [36m</button>[39m
           [exec]                 [36m</p>[39m
           [exec]               [36m</div>[39m
           [exec]               [36m<div[39m
           [exec]                 [33mclass[39m=[32m"autofit-col"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<button[39m
           [exec]                   [33mclass[39m=[32m"btn-monospaced btn btn-outline-borderless btn-outline-secondary"[39m
           [exec]                   [33mtype[39m=[32m"button"[39m
           [exec]                 [36m>[39m
           [exec]                   [36m<svg[39m
           [exec]                     [33mclass[39m=[32m"lexicon-icon lexicon-icon-pencil"[39m
           [exec]                     [33mrole[39m=[32m"presentation"[39m
           [exec]                   [36m>[39m
           [exec]                     [36m<use[39m
           [exec]                       [33mxlink:href[39m=[32m"#pencil"[39m
           [exec]                     [36m/>[39m
           [exec]                   [36m</svg>[39m
           [exec]                 [36m</button>[39m
           [exec]               [36m</div>[39m
           [exec]               [36m<div[39m
           [exec]                 [33mclass[39m=[32m"autofit-col"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<div[39m
           [exec]                   [33mclass[39m=[32m"dropdown"[39m
           [exec]                 [36m>[39m
           [exec]                   [36m<button[39m
           [exec]                     [33maria-label[39m=[32m"show-actions"[39m
           [exec]                     [33mclass[39m=[32m"dropdown-toggle btn-monospaced btn btn-outline-borderless btn-outline-secondary"[39m
           [exec]                     [33mtype[39m=[32m"button"[39m
           [exec]                   [36m>[39m
           [exec]                     [36m<svg[39m
           [exec]                       [33mclass[39m=[32m"lexicon-icon lexicon-icon-ellipsis-v"[39m
           [exec]                       [33mrole[39m=[32m"presentation"[39m
           [exec]                     [36m>[39m
           [exec]                       [36m<use[39m
           [exec]                         [33mxlink:href[39m=[32m"#ellipsis-v"[39m
           [exec]                       [36m/>[39m
           [exec]                     [36m</svg>[39m
           [exec]                   [36m</button>[39m
           [exec]                 [36m</div>[39m
           [exec]               [36m</div>[39m
           [exec]             [36m</li>[39m
           [exec]           [36m</ul>[39m
           [exec]           [36m<button[39m
           [exec]             [33mclass[39m=[32m"w-100 btn btn-primary"[39m
           [exec]             [33mtype[39m=[32m"button"[39m
           [exec]           [36m>[39m
           [exec]             [0mreview-and-run-test[0m
           [exec]           [36m</button>[39m
           [exec]         [36m</div>[39m
           [exec]       [36m</div>[39m
           [exec]       [36m<div>[39m
           [exec]         [36m<div>[39m
           [exec]           [36m<div[39m
           [exec]             [33mclass[39m=[32m"dropdown-menu"[39m
           [exec]             [33mstyle[39m=[32m"top: 0px; left: 0px;"[39m
           [exec]           [36m>[39m
           [exec]             [36m<ul[39m
           [exec]               [33mclass[39m=[32m"list-unstyled"[39m
           [exec]             [36m>[39m
           [exec]               [36m<li[39m
           [exec]                 [33mtabindex[39m=[32m"-1"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<button[39m
           [exec]                   [33mclass[39m=[32m"dropdown-item"[39m
           [exec]                 [36m>[39m
           [exec]                   [0medit[0m
           [exec]                 [36m</button>[39m
           [exec]               [36m</li>[39m
           [exec]               [36m<li[39m
           [exec]                 [33mtabindex[39m=[32m"-1"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<button[39m
           [exec]                   [33mclass[39m=[32m"dropdown-item"[39m
           [exec]                 [36m>[39m
           [exec]                   [0mdelete[0m
           [exec]                 [36m</button>[39m
           [exec]               [36m</li>[39m
           [exec]             [36m</ul>[39m
           [exec]           [36m</div>[39m
           [exec]         [36m</div>[39m
           [exec]       [36m</div>[39m
           [exec]       [36m<div>[39m
           [exec]         [36m<div>[39m
           [exec]           [36m<div[39m
           [exec]             [33mclass[39m=[32m"dropdown-menu"[39m
           [exec]             [33mstyle[39m=[32m"top: 0px; left: 0px;"[39m
           [exec]           [36m>[39m
           [exec]             [36m<ul[39m
           [exec]               [33mclass[39m=[32m"list-unstyled"[39m
           [exec]             [36m>[39m
           [exec]               [36m<li[39m
           [exec]                 [33mtabindex[39m=[32m"-1"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<button[39m
           [exec]                   [33mclass[39m=[32m"dropdown-item"[39m
           [exec]                 [36m>[39m
           [exec]                   [0medit[0m
           [exec]                 [36m</button>[39m
           [exec]               [36m</li>[39m
           [exec]               [36m<li[39m
           [exec]                 [33mtabindex[39m=[32m"-1"[39m
           [exec]               [36m>[39m
           [exec]                 [36m<button[39m
           [exec]                   [33mclass[39m=[32m"dropdown-item"[39m
           [exec]                 [36m>[39m
           [exec]                   [0mdelete[0m
           [exec]                 [36m</button>[39m
           [exec]               [36m</li>[39m
           [exec]             [36m</ul>[39m
           [exec]           [36m</div>[39m
           [exec]         [36m</div>[39m
           [exec]       [36m</div>[39m
           [exec]       [36m<div>[39m
           [exec]         [36m<div[39m
           [exec]           [33mclass[39m=[32m"modal-backdrop fade"[39m
           [exec]         [36m/>[39m
           [exec]         [36m<div[39m
           [exec]           [33mclass[39m=[32m"fade modal d-block"[39m
           [exec]         [36m>[39m
           [exec]           [36m<div[39m
           [exec]             [33mclass[39m=[32m"modal-lg"[39m
           [exec]             [33mstyle[39m=[32m"margin: auto;"[39m
           [exec]           [36m>[39m
           [exec]             [36m<div[39m
           [exec]               [33mclass[39m=[32m"modal-dialog modal-lg"[39m
           [exec]               [33mtabindex[39m=[32m"-1"[39m
           [exec]             [36m>[39m
           [exec]               [36m<div[39m
           [exec]                 [33mclass[39m=[32m"modal-content"[39m
           [exec]               [36m/>[39m
           [exec]             [36m</div>[39m
           [exec]           [36m</div>[39m
           [exec]         [36m</div>[39m
           [exec]       [36m</div>[39m
           [exec]     [36m</body>[39m
           [exec] 
           [exec]       341 | 		await waitForElement(() => getByText('review-and-run-test'));
           [exec]       342 | 
           [exec]     > 343 | 		const confidenceSlider = getAllByDisplayValue(
           [exec]           | 		                         ^
           [exec]       344 | 			INITIAL_CONFIDENCE_LEVEL.toString()
           [exec]       345 | 		);
           [exec]       346 | 		const splitSliders = getAllByDisplayValue('50');
           [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.getAllByDisplayValue (test/js/components/SegmentsExperimentsSidebar.es.js:343:28)
      

        Attachments

          Activity

            People

            • Assignee:
              joshua.itagaki Joshua Itagaki
              Reporter:
              joshua.itagaki Joshua Itagaki
              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:
                11 weeks, 5 days ago

                Packages

                Version Package
                7.2.X
                7.2.1 CE GA2