Details

    • Fix Priority:
      5

      Description

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

           [exec] FAIL test/react/js/components/FlagsModal.es.js
           [exec]   ??? FlagsModal ??? renders
           [exec] 
           [exec]     expect(value).toMatchSnapshot()
           [exec] 
           [exec]     Received value does not match stored snapshot "FlagsModal renders 1".
           [exec] 
           [exec]     - Snapshot
           [exec]     + Received
           [exec] 
           [exec]     @@ -13,113 +13,10 @@
           [exec]               class="modal-dialog modal-md"
           [exec]               tabindex="-1"
           [exec]             >
           [exec]               <div
           [exec]                 class="modal-content"
           [exec]     -         >
           [exec]     -           <div
           [exec]     -             class="modal-header"
           [exec]     -           >
           [exec]     -             <div
           [exec]     -               class="modal-title"
           [exec]     -             >
           [exec]     -               report-inappropriate-content
           [exec]     -             </div>
           [exec]     -             <button
           [exec]     -               aria-label="close"
           [exec]     -               class="close btn btn-unstyled"
           [exec]     -               type="button"
           [exec]     -             >
           [exec]     -               <svg
           [exec]     -                 class="lexicon-icon lexicon-icon-times"
           [exec]     -                 role="presentation"
           [exec]     -               >
           [exec]     -                 <use
           [exec]     -                   xlink:href="#times"
           [exec]     -                 />
           [exec]     -               </svg>
           [exec]     -             </button>
           [exec]     -           </div>
           [exec]     -           <form>
           [exec]     -             <div
           [exec]     -               class="modal-body"
           [exec]     -             >
           [exec]     -               <p>
           [exec]     -                 you-are-about-to-report-a-violation-of-our-x.-all-reports-are-strictly-confidential
           [exec]     -               </p>
           [exec]     -               <div
           [exec]     -                 class="form-group"
           [exec]     -               >
           [exec]     -                 <label
           [exec]     -                   class="control-label"
           [exec]     -                   for="selectedReason"
           [exec]     -                 >
           [exec]     -                   reason-for-the-report
           [exec]     -                 </label>
           [exec]     -                 <select
           [exec]     -                   class="form-control"
           [exec]     -                   id="selectedReason"
           [exec]     -                   name="selectedReason"
           [exec]     -                 >
           [exec]     -                   <option
           [exec]     -                     value="value"
           [exec]     -                   >
           [exec]     -                     text
           [exec]     -                   </option>
           [exec]     -                   <option
           [exec]     -                     value="value2"
           [exec]     -                   >
           [exec]     -                     text2
           [exec]     -                   </option>
           [exec]     -                   <option
           [exec]     -                     value="other"
           [exec]     -                   >
           [exec]     -                     other-reason
           [exec]     -                   </option>
           [exec]     -                 </select>
           [exec]     -               </div>
           [exec]     -             </div>
           [exec]     -             <div
           [exec]     -               class="modal-footer"
           [exec]     -             >
           [exec]     -               <div
           [exec]     -                 class="modal-item-first"
           [exec]     -               />
           [exec]     -               <div
           [exec]     -                 class="modal-item"
           [exec]     -               />
           [exec]     -               <div
           [exec]     -                 class="modal-item-last"
           [exec]     -               >
           [exec]     -                 <div
           [exec]     -                   class="btn-group"
           [exec]     -                   role="group"
           [exec]     -                 >
           [exec]     -                   <div
           [exec]     -                     class="btn-group-item"
           [exec]     -                   >
           [exec]     -                     <button
           [exec]     -                       class="btn btn-secondary"
           [exec]     -                       type="button"
           [exec]     -                     >
           [exec]     -                       cancel
           [exec]     -                     </button>
           [exec]     -                   </div>
           [exec]     -                   <div
           [exec]     -                     class="btn-group-item"
           [exec]     -                   >
           [exec]     -                     <button
           [exec]     -                       class="btn btn-primary"
           [exec]     -                       type="submit"
           [exec]     -                     >
           [exec]     -                       report
           [exec]     -                     </button>
           [exec]     -                   </div>
           [exec]     -                 </div>
           [exec]     -               </div>
           [exec]     -             </div>
           [exec]     -           </form>
           [exec]     -         </div>
           [exec]     +         />
           [exec]             </div>
           [exec]           </div>
           [exec]         </div>
           [exec]       </DocumentFragment>
           [exec] 
           [exec]       68 | 		const {asFragment} = _renderFlagsModalComponent();
           [exec]       69 | 
           [exec]     > 70 | 		expect(asFragment()).toMatchSnapshot();
           [exec]          | 		                     ^
           [exec]       71 | 	});
           [exec]       72 | 
           [exec]       73 | 	it('renders as guess and render email field', () => {
           [exec] 
           [exec]       at Object.toMatchSnapshot (test/react/js/components/FlagsModal.es.js:70:24)
           [exec] 
           [exec]   ??? FlagsModal ??? renders as guess and render email field
           [exec] 
           [exec]     Unable to find a label with the text of: email
           [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"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-md"[39m
           [exec]             [33mstyle[39m=[32m"margin: auto;"[39m
           [exec]           [36m>[39m
           [exec]             [36m<div[39m
           [exec]               [33mclass[39m=[32m"modal-dialog modal-md"[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<div />[39m
           [exec]     [36m</body>[39m
           [exec] 
           [exec]       76 | 		});
           [exec]       77 | 
           [exec]     > 78 | 		expect(getByLabelText('email', {exact: false})).not.toBe(null);
           [exec]          | 		       ^
           [exec]       79 | 	});
           [exec]       80 | 
           [exec]       81 | 	it('renders error', () => {
           [exec] 
           [exec]       at getElementError (../../../node_modules/@testing-library/dom/dist/query-helpers.js:46:10)
           [exec]       at getAllByLabelText (../../../node_modules/@testing-library/dom/dist/queries/label-text.js:104:43)
           [exec]       at args (../../../node_modules/@testing-library/dom/dist/query-helpers.js:83:17)
           [exec]       at Object.getByLabelText (test/react/js/components/FlagsModal.es.js:78:10)
           [exec] 
           [exec]   ??? FlagsModal ??? renders error
           [exec] 
           [exec]     expect(value).toMatchSnapshot()
           [exec] 
           [exec]     Received value does not match stored snapshot "FlagsModal renders error 1".
           [exec] 
           [exec]     - Snapshot
           [exec]     + Received
           [exec] 
           [exec]     @@ -13,63 +13,10 @@
           [exec]               class="modal-dialog modal-md"
           [exec]               tabindex="-1"
           [exec]             >
           [exec]               <div
           [exec]                 class="modal-content"
           [exec]     -         >
           [exec]     -           <div
           [exec]     -             class="modal-header"
           [exec]     -           >
           [exec]     -             <div
           [exec]     -               class="modal-title"
           [exec]     -             >
           [exec]     -               report-inappropriate-content
           [exec]     -             </div>
           [exec]     -             <button
           [exec]     -               aria-label="close"
           [exec]     -               class="close btn btn-unstyled"
           [exec]     -               type="button"
           [exec]     -             >
           [exec]     -               <svg
           [exec]     -                 class="lexicon-icon lexicon-icon-times"
           [exec]     -                 role="presentation"
           [exec]     -               >
           [exec]     -                 <use
           [exec]     -                   xlink:href="#times"
           [exec]     -                 />
           [exec]     -               </svg>
           [exec]     -             </button>
           [exec]     -           </div>
           [exec]     -           <div
           [exec]     -             class="modal-body"
           [exec]     -           >
           [exec]     -             <p>
           [exec]     -               <strong>
           [exec]     -                 an-error-occurred-while-sending-the-report.-please-try-again-in-a-few-minutes
           [exec]     -               </strong>
           [exec]     -             </p>
           [exec]     -           </div>
           [exec]     -           <div
           [exec]     -             class="modal-footer"
           [exec]     -           >
           [exec]     -             <div
           [exec]     -               class="modal-item-first"
           [exec]     -             />
           [exec]     -             <div
           [exec]     -               class="modal-item"
           [exec]     -             />
           [exec]     -             <div
           [exec]     -               class="modal-item-last"
           [exec]     -             >
           [exec]     -               <button
           [exec]     -                 class="btn btn-secondary"
           [exec]     -                 type="button"
           [exec]     -               >
           [exec]     -                 close
           [exec]     -               </button>
           [exec]     -             </div>
           [exec]     -           </div>
           [exec]     -         </div>
           [exec]     +         />
           [exec]             </div>
           [exec]           </div>
           [exec]         </div>
           [exec]       </DocumentFragment>
           [exec] 
           [exec]       82 | 		const {asFragment} = _renderFlagsModalComponent({status: STATUS_ERROR});
           [exec]       83 | 
           [exec]     > 84 | 		expect(asFragment()).toMatchSnapshot();
           [exec]          | 		                     ^
           [exec]       85 | 	});
           [exec]       86 | 
           [exec]       87 | 	it('renders login', () => {
           [exec] 
           [exec]       at Object.toMatchSnapshot (test/react/js/components/FlagsModal.es.js:84:24)
           [exec] 
           [exec]   ??? FlagsModal ??? renders login
           [exec] 
           [exec]     expect(value).toMatchSnapshot()
           [exec] 
           [exec]     Received value does not match stored snapshot "FlagsModal renders login 1".
           [exec] 
           [exec]     - Snapshot
           [exec]     + Received
           [exec] 
           [exec]     @@ -13,63 +13,10 @@
           [exec]               class="modal-dialog modal-md"
           [exec]               tabindex="-1"
           [exec]             >
           [exec]               <div
           [exec]                 class="modal-content"
           [exec]     -         >
           [exec]     -           <div
           [exec]     -             class="modal-header"
           [exec]     -           >
           [exec]     -             <div
           [exec]     -               class="modal-title"
           [exec]     -             >
           [exec]     -               report-inappropriate-content
           [exec]     -             </div>
           [exec]     -             <button
           [exec]     -               aria-label="close"
           [exec]     -               class="close btn btn-unstyled"
           [exec]     -               type="button"
           [exec]     -             >
           [exec]     -               <svg
           [exec]     -                 class="lexicon-icon lexicon-icon-times"
           [exec]     -                 role="presentation"
           [exec]     -               >
           [exec]     -                 <use
           [exec]     -                   xlink:href="#times"
           [exec]     -                 />
           [exec]     -               </svg>
           [exec]     -             </button>
           [exec]     -           </div>
           [exec]     -           <div
           [exec]     -             class="modal-body"
           [exec]     -           >
           [exec]     -             <p>
           [exec]     -               <strong>
           [exec]     -                 please-sign-in-to-flag-this-as-inappropriate
           [exec]     -               </strong>
           [exec]     -             </p>
           [exec]     -           </div>
           [exec]     -           <div
           [exec]     -             class="modal-footer"
           [exec]     -           >
           [exec]     -             <div
           [exec]     -               class="modal-item-first"
           [exec]     -             />
           [exec]     -             <div
           [exec]     -               class="modal-item"
           [exec]     -             />
           [exec]     -             <div
           [exec]     -               class="modal-item-last"
           [exec]     -             >
           [exec]     -               <button
           [exec]     -                 class="btn btn-secondary"
           [exec]     -                 type="button"
           [exec]     -               >
           [exec]     -                 close
           [exec]     -               </button>
           [exec]     -             </div>
           [exec]     -           </div>
           [exec]     -         </div>
           [exec]     +         />
           [exec]             </div>
           [exec]           </div>
           [exec]         </div>
           [exec]       </DocumentFragment>
           [exec] 
           [exec]       88 | 		const {asFragment} = _renderFlagsModalComponent({status: STATUS_LOGIN});
           [exec]       89 | 
           [exec]     > 90 | 		expect(asFragment()).toMatchSnapshot();
           [exec]          | 		                     ^
           [exec]       91 | 	});
           [exec]       92 | 
           [exec]       93 | 	it('renders success', () => {
           [exec] 
           [exec]       at Object.toMatchSnapshot (test/react/js/components/FlagsModal.es.js:90:24)
           [exec] 
           [exec]   ??? FlagsModal ??? renders success
           [exec] 
           [exec]     expect(value).toMatchSnapshot()
           [exec] 
           [exec]     Received value does not match stored snapshot "FlagsModal renders success 1".
           [exec] 
           [exec]     - Snapshot
           [exec]     + Received
           [exec] 
           [exec]     @@ -13,66 +13,10 @@
           [exec]               class="modal-dialog modal-md"
           [exec]               tabindex="-1"
           [exec]             >
           [exec]               <div
           [exec]                 class="modal-content"
           [exec]     -         >
           [exec]     -           <div
           [exec]     -             class="modal-header"
           [exec]     -           >
           [exec]     -             <div
           [exec]     -               class="modal-title"
           [exec]     -             >
           [exec]     -               report-inappropriate-content
           [exec]     -             </div>
           [exec]     -             <button
           [exec]     -               aria-label="close"
           [exec]     -               class="close btn btn-unstyled"
           [exec]     -               type="button"
           [exec]     -             >
           [exec]     -               <svg
           [exec]     -                 class="lexicon-icon lexicon-icon-times"
           [exec]     -                 role="presentation"
           [exec]     -               >
           [exec]     -                 <use
           [exec]     -                   xlink:href="#times"
           [exec]     -                 />
           [exec]     -               </svg>
           [exec]     -             </button>
           [exec]     -           </div>
           [exec]     -           <div
           [exec]     -             class="modal-body"
           [exec]     -           >
           [exec]     -             <p>
           [exec]     -               <strong>
           [exec]     -                 thank-you-for-your-report
           [exec]     -               </strong>
           [exec]     -             </p>
           [exec]     -             <p>
           [exec]     -               although-we-cannot-disclose-our-final-decision,-we-do-review-every-report-and-appreciate-your-effort-to-make-sure-x-is-a-safe-environment-for-everyone
           [exec]     -             </p>
           [exec]     -           </div>
           [exec]     -           <div
           [exec]     -             class="modal-footer"
           [exec]     -           >
           [exec]     -             <div
           [exec]     -               class="modal-item-first"
           [exec]     -             />
           [exec]     -             <div
           [exec]     -               class="modal-item"
           [exec]     -             />
           [exec]     -             <div
           [exec]     -               class="modal-item-last"
           [exec]     -             >
           [exec]     -               <button
           [exec]     -                 class="btn btn-secondary"
           [exec]     -                 type="button"
           [exec]     -               >
           [exec]     -                 close
           [exec]     -               </button>
           [exec]     -             </div>
           [exec]     -           </div>
           [exec]     -         </div>
           [exec]     +         />
           [exec]             </div>
           [exec]           </div>
           [exec]         </div>
           [exec]       </DocumentFragment>
           [exec] 
           [exec]        96 | 		});
           [exec]        97 | 
           [exec]     >  98 | 		expect(asFragment()).toMatchSnapshot();
           [exec]           | 		                     ^
           [exec]        99 | 	});
           [exec]       100 | });
           [exec]       101 | 
           [exec] 
           [exec]       at Object.toMatchSnapshot (test/react/js/components/FlagsModal.es.js:98:24)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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

                Packages

                Version Package