Details

      Description

      Create the test scenarios to validate the parent story (https://issues.liferay.com/browse/LPS-140483), according to the Acceptance Criteria.

      Those test scenarios will be written in the parent story.

      Test Cases

      Case 1:
      Create Page Template from an empty Content Page in staging site

      1. Log in as admin user
      2. Enable Local Live
      3. Create a page template collection
      4. Create a Content Page
      5. Click on Create Page Template button (Next to Publish button)
      6. Navigate to Page Templates admin
      7. See the template has been created

      Case 2:
      Create Page Template from an empty Content Page

      1. Log in as admin user
      2. Create a page template collection
      3. Create a Content Page
      4. Save page as page template to the collection
      5. Navigate to Page Templates admin
      6. See the template has been created
      7. Navigate to the Pages admin
      8. View the content page is still at draft status

      Case 3:
      Create Page Template from a Content Page with elements in staging site

      1. Log in as admin user
      2. Enable Local live
      3. Create a page template collection
      4. Create a Content Page
      5. Add the following Fragments and Widgets to page: Heading and Asset Publisher
      6. Publish the page
      7. Open the Content Page created in Edit Mode
      8. Save page as page template to the collection
      9. Navigate to Page Templates admin
      10. Assert the template has been created successfully
      11. Navigate to the content page template at edit mode
      12. View the Heading and Asset Publisher are shown

      Case 4:
      Create Page Template from a Content Page with elements

      1. Log in as admin user
      2. Create a page template collection
      3. Create a Content Page
      4. Add the following Fragments and Widgets to page: Heading and Asset Publisher
      5. Publish the page
      6. Open the Content Page created in Edit Mode
      7. Save page as page template to the collection
      8. Navigate to Page Templates admin
      9. See the template has been created
      10. Navigate to the content page template at edit mode
      11. View the Heading and Asset Publisher are shown

      Case 5:
      Create Page Template from Content Page has not been published

      1. Log in as admin user
      2. Create a page template collection
      3. Create a Content Page
      4. Add a Heading fragment to page
      5. Click on Create Page Template button (Next to Publish button)
      6. Navigate to Page Templates admin
      7. See the template has been created

      Case 6:
      Cannot create Page Templates with same names in the same page template collection from content page

      1. Log in as admin user
      2. Create a page template collection
      3. Create a Content Page
      4. Save page as page template to the collection
      5. Save page as page template with the same name in the same collection
      6. Assert cannot create template because it has the same name with existing one

      Case 7:
      Cannot create Page Templates from content page when page template collection doesn't exist

      1. Log in as admin user
      2. Create a Content Page
      3. Open the Content Page created in Edit Mode
      4. Save page as page template to the collection
      5. Assert cannot create template because you must create a Collection before creating a template

      Case 8:
      The site admin could create page template from content page based on content page template

      1. Add a new site
      2. Add a page template collection
      3. Add a Heading fragment to a content page template
      4. Add a content page based on the content page template
      5. Add a Button fragment to page
      6. Save page as page template to the collection
      7. View the new content page template shown in Page Templates admin
      8. Navigate to the new content page template at edit mode
      9. View the Heading and Button fragments are shown

      Case 9:
      The site admin could create page template from content page based on master page

      1. Add a new site
      2. Add a page template collection
      3. Add a Header Dark fragment to the header of master page
      4. Add a content page based on the master page
      5. Add a Button fragment to page
      6. Save page as page template to the collection
      7. View the new content page template shown in Page Templates admin
      8. Navigate to the new content page template at edit mode
      9. View the Button and Header Dark fragments are shown
      10. View the content page template is based on master page

      Case 10:
      The site admin could create page template from content page based on style book

      1. Add a new site
      2. Add a page template collection
      3. Add a style book
      4. Change the Font Family Base to times
      5. Add a Heading fragment to a content page
      6. Apply the style book to content page
      7. Save page as page template to the collection
      8. View the new content page template shown in Page Templates admin
      9. Navigate to the new content page template at edit mode
      10. View the font family of Heading is times
      11. View the style book applied to content page template

      Case 11:
      The site admin could create page template from content page in staging site with page versioning

      1. Add a new site
      2. Enable local live with page versioning
      3. Add a page template collection
      4. Add a Heading fragment to a content page
      5. Publish the content page
      6. Add a new site page variation at view mode
      7. Navigate to content page at edit mode in new page variation
      8. Save page as page template to the collection
      9. View the new content page template shown in Page Templates admin
      10. Navigate to the new content page template at edit mode
      11. View the Heading fragment is shown

      Case 12:
      The site admin could create page template from content page with translation

      1. Add a new site
      2. Add a page template collection
      3. Add a Heading fragment to a content page
      4. Change the locale to es-ES
      5. Translate the inline text of Heading
      6. Save page as page template to the collection
      7. View the new content page template shown in Page Templates admin
      8. Navigate to the new content page template at edit mode
      9. View the default inline text shown in en-US
      10. Change the locale to es-ES
      11. View the translated inline text shown

      Case 13:
      The site admin could create page template from content page based on non-default experience

      1. Add a new site
      2. Add a page template collection
      3. Add a content page
      4. Add a new experience for Anyone
      5. Switch to new experience
      6. Add a Heading fragment to page
      7. View the following info shown in Create Page Template modal
        • The page template is based on the current experience.
      8. Save page as page template to the collection
      9. View the new content page template shown in Page Templates admin
      10. Navigate to the new content page template at edit mode
      11. View the Heading fragment is shown

        Attachments

          Activity

            People

            Assignee:
            david.gutierrez David Gutiérrez Mesa
            Reporter:
            david.gutierrez David Gutiérrez Mesa
            Recent user:
            Yang Cao
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package