Details

    • Type: Technical Testing
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Fragments Toolkit
    • Labels:
      None

      Description

      Test Cases

      Case 1:
      Can generate a fragment composition scaffolding via Liferay Fragments Toolkit

      1. Run yo liferay-fragments in repo to create a new project
      2. Access to new project
      3. Run npm run add-fragment-composition
      4. Access to new composition folder
      5. Assert collection.json file is shown
      6. Access to new collection folder
      7. Assert fragment-composition.json and definition.json file are shown

      Case 2:
      Can generate a content page template scaffolding via Liferay Fragments Toolkit

      1. Run yo liferay-fragments in repo to create a new project
      2. Access to new project
      3. Run npm run add-page-template
      4. Page Template
      5. Access to new page template folder
      6. Assert page-definition.json and page-template.json file are shown

      Case 3:
      Can generate a master page template scaffolding via Liferay Fragments Toolkit

      1. Run yo liferay-fragments in repo to create a new project
      2. Access to new project
      3. Run npm run add-page-template
      4. Master Page
      5. Access to new master page folder
      6. Assert page-definition.json and master-page.json file are shown

      Case 4:
      Can compress generated composition and page templates to a zip via Liferay Fragments Toolkit

      1. Run yo liferay-fragments in repo to create a new project
      2. Access to new project
      3. Run npm run add-fragment-composition
      4. Run npm run add-page-template:
        • Page Template
      5. Run npm run add-page-template:
        • Master Page
      6. Run npm run compress
      7. Access to build folder
      8. Assert liferay-fragments.zip is shown
      9. Open zip file
      10. Assert all generated files are shown

      Case 5:
      Can import generated composition and page templates to portal via Liferay Fragments Toolkit

      1. Run yo liferay-fragments in repo to create a new project
      2. Access to new project
      3. Run npm run add-fragment-composition
      4. Run npm run add-page-template:
        • Page Template
      5. Run npm run add-page-template:
        • Master Page
      6. Run npm run import
        • Liferay.com > Liferay
      7. Site admin > Site Builder > Page Fragments
      8. Assert new composition is shown
      9. Site admin > Site Builder > Page Templates > Masters tab
      10. Assert new custom master is shown
      11. Site admin > Site Builder > Page Templates > Page Templates tab
      12. Assert new content page template 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