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

Asset publisher back button does not work correctly

    Details

      Description

      Description
      Asset publisher back button does not work correctly with multiple asset publishers on a single page or with view in context option.

      I've broken the steps down into various test cases when I created the test cases I re-navigated to the page to clean up the URL. QA should test with each test case individually and all the of them together.

      Steps

      1. Case #1
        1. Setup
          1. Create a page, "Page A"
          2. On "Page A", add two asset publishers to the page
          3. Add a basic web content article "Article 1"
        2. Testing
          1. Click on the article title in the first asset publisher
          2. Click on the article title in the second asset publisher
          3. Click back on the first asset publisher
            Result Both asset publishers are no longer displaying full content
            Expected The first asset asset publisher should be displaying it's abstract and the second one should still be displaying it's full content
      2. Case #2
        1. Setup
          1. On "Page A", add another asset publisher
        2. Testing
          1. Click the title links for each asset publishers in order (first, second, third).
          2. Click the back link of the second asset publisher
            Result The back link changes the URL but does not bring the second asset publisher back to it's abstract page
            Expected The first and third asset publishers continue displaying full content while the second one returns to the abstract
      3. Case #3
        1. Setup
          1. Create another page, "Page B"
          2. Add an asset publisher to the page
          3. Configure the asset publisher's display settings checking the "Set as the Default Asset Publisher for This Page" checkbox
          4. Create another web content article "Article 2" setting the display page to "Page B"
          5. On "Page A", configure the first asset publisher's display setting "Asset Link Behavior" to be "View in context"
        2. Testing
          1. On "Page A", click the first asset publisher's "Article 2" link (this should navigate to "Page B" however a regression likely caused by LPS-47149 means the user must also refresh the page)
          2. Click the back link
            Result The user remains on "Page B"
            Expected The user is redirected to "Page A"
      4. Case #4
        1. Testing Only
          1. On "Page A", click "Article 1" in the second asset publisher
          2. Click "Article 2" in the first asset publisher (should be redirect to "Page B")
          3. Click the back link
            Expected "Article 1" in the second asset publisher should still be displayed in full content view
      5. Case #5
        1. Setup
          1. Create another page, "Page C"
          2. Add an asset publisher to the page
          3. Configure the asset publisher's display settings checking the "Set as the Default Asset Publisher for This Page" checkbox
          4. On "Page B", add two more asset publishers
          5. Configure the all three asset publisher's display settings "Asset Link Behavior" to be "View in context"
          6. Create another web content article "Article 3" setting the display page to "Page C"
        2. Testing
          1. On "Page A", click on the second asset publisher's "Article 1" link
          2. Click on the first asset publisher's "Article 2" link (should be redirected to "Page B")
          3. Click on the second asset publisher's "Article 1" link
          4. Click on the third asset publisher's "Article 3" link (should be redirected to "Page C")
          5. Click the back
            Expected "Article 1" in the second asset publisher should still be displayed in full content view
      6. Case #6
        1. Testing Only
          1. On "Page B", click on the second asset publisher's "Article 2" link
            Result The article is displayed in the default asset publisher but without a back link
            Expected The article will be displayed in the default asset publisher with a back link

      Notes:
      I only listed cases that are currently broken. The reason I'm posting all of these cases on one ticket instead of six is because fixing any of them is likely to break other ones.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 28 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M3