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

Test for Liferay.Search.SearchBar.updateQueryString is failing

    Details

    • Type: Regression Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: Master
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      1

      Description

      The new tests for Liferay.Search.SearchBar.updateQueryString are failing with the following stack trace:

           [exec] [1A[2K[31mFirefox 38.0.0 (Linux 0.0.0) Liferay.Search.SearchBar .updateQueryString should remove p_p_id, p_p_state, start and add query keyword FAILED[39m
           [exec]     expected '?%3Fp_p_lifecycle=0&p_p_mode=view&q=example' to equal '?p_p_lifecycle=0&p_p_mode=view&q=example'
           [exec]     AssertionError@/opt/dev/projects/github/liferay-portal/modules/node_modules/liferay-karma-config/node_modules/karma-chai/node_modules/chai/chai.js:5553:18
           [exec]     [3]</module.exports/Assertion.prototype.assert@/opt/dev/projects/github/liferay-portal/modules/node_modules/liferay-karma-config/node_modules/karma-chai/node_modules/chai/chai.js:206:1
           [exec]     [6]</module.exports/assert.equal@/opt/dev/projects/github/liferay-portal/modules/node_modules/liferay-karma-config/node_modules/karma-chai/node_modules/chai/chai.js:2277:1
           [exec]     window.__cjs_module__["/opt/dev/projects/github/liferay-portal/modules/apps/portal-search/portal-search-web/test/search_bar_test.js"]/</</<@test/search_bar_test.js:70:4
           [exec]     withAlloyUI/</<@test/alloy_ui_util.js:6:4
           [exec]     proto._notify@/opt/dev/projects/github/liferay-portal/modules/node_modules/alloy-ui/build/aui/aui.js:1105:17
           [exec]     proto.use/<@/opt/dev/projects/github/liferay-portal/modules/node_modules/alloy-ui/build/aui/aui.js:1021:17
           [exec]     proto._notify@/opt/dev/projects/github/liferay-portal/modules/node_modules/alloy-ui/build/aui/aui.js:1105:17
           [exec]     proto._use/handleLoader@/opt/dev/projects/github/liferay-portal/modules/node_modules/alloy-ui/build/aui/aui.js:1250:25
           [exec]     proto._use@/opt/dev/projects/github/liferay-portal/modules/node_modules/alloy-ui/build/aui/aui.js:1341:17
           [exec]     proto.use@/opt/dev/projects/github/liferay-portal/modules/node_modules/alloy-ui/build/aui/aui.js:1020:13
           [exec]     withAlloyUI/<@test/alloy_ui_util.js:5:1

      Possible cause

      The test pass locally. It may be failing on CI because CI uses Firefox 38.0, which may not be stripping the question mark from the string before processing.

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              adam.brandizzi Adam Brandizzi
              Participants of an Issue:
              Recent user:
              Adam Brandizzi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                20 weeks, 5 days ago

                Packages

                Version Package