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

Cookie Consent Configuration portlet cannot save cookies via Confirm button on a Widget Page

Description

    Summary
    When CI starts up tomcat and portal for test execution, we cannot save cookies when the cookie consent portlet is added to a Widget Page

    Repro

    1. Login to Portal
    2. Enable Cookie Preference handling, with Explicit mode: ON
    3. Adding a new widget page
    4. Adding Cookies Banner Configuration widget to it
    5. Enabling all toggle switches on the widget
    6. Pressing confirm

    Important note for repro

    • Please make sure you start off the test case with tomcat too using the following ant command, else the issue is not reproducible:
      ant -f build-test-tomcat.xml run-selenium-tomcat -Dbuild.app.server=false -Dtest.class=CookiesConsentPanel#CookiesConsentPanelCouldSaveCookieSettingsWhenItsOnASitePage
      

      It will start up the portal from your build folder.
      Make sure your database, named as 'lportal' is empty before each test run

    Actual result(s)
    Pressing Confirm the very first time will not save any ticked cookies.

    Expected result(s)
    Cookies should be saved

    Log/Error Message
    The equivalent test case is named as CookiesConsentPanel#CookiesConsentPanelCouldSaveCookieSettingsWhenItsOnASitePage
    Testray history

    It also effects the following automated test cases:

    1. CookiesUseCase#VerifyingExplicitCookieWorfklow
    2. CookiesUseCase#VerifyingImplicitCookieWorfklow

    Attachments

      Issue Links

        Activity

          People

            jessie.zhao@liferay.com Jessie Zhao
            nora.szel Nóra Szél
            Gábor Lovas Gábor Lovas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 weeks, 6 days ago

              Packages

                Version Package
                7.4.13 DXP U53
                Master