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

      Product QA | Test Validation - Round 1

      Bugs:

      - PASS
      - To Do
      - FAIL

      • Impeditive:
        Ticket Title QA Status
        ? ?
        LPS-123077 The set up company Web ID and group key steps shouldn't be shown when choose no for deployment decriptor Verified
        LPS-123078 The react fragment with invalid codes shouldn't be imported via Fragments Toolkit Verified
      • Not impeditive:
        Ticket Title QA Status
        ? ?

      Test Cases

      Case 1:
      Create a react fragment via Fragments Toolkit

      1. Open command line
      2. yarn global add generator-liferay-fragments
      3. yo liferay-fragment
      4. Access to project directory
      5. yo liferay-fragment:fragment or yarn run add-fragment
      6. Type name
      7. Reply Y for Use React
      8. Choose a collection
      9. Access to src/${collectionName}
      10. Assert the react fragment folder is shown

      Case 2:
      Import a react fragment via Fragments Toolkit

      1. Open command line
      2. yarn global add generator-liferay-fragments
      3. yo liferay-fragment
      4. Access to project directory
      5. yo liferay-fragment:fragment or yarn run add-fragment
      6. Type name
      7. Reply Y for Use React
      8. Choose a collection
      9. yarn run import
      10. Assert the Import successful message is shown in command line
      11. Navigate to Fragments admin
      12. Assert the react fragment is shown

      Case 3:
      Compress a react fragment via Fragments Toolkit

      1. Open command line
      2. yarn global add generator-liferay-fragments
      3. yo liferay-fragment
      4. Access to project directory
      5. yo liferay-fragment:fragment or yarn run add-fragment
      6. Type name
      7. Reply Y for Use React
      8. Choose a collection
      9. yarn run compress
      10. Reply Y for Add deployment descriptor
      11. Reply liferay.com as company Web ID
      12. Reply Guest as group key
      13. Access to build directory
      14. Assert the react fragment zip file is shown

      Case 4:
      Compress a react fragment without description descriptor via Fragments Toolkit

      1. Open command line
      2. yarn global add generator-liferay-fragments
      3. yo liferay-fragment
      4. Access to project directory
      5. yo liferay-fragment:fragment or yarn run add-fragment
      6. Type name
      7. Reply Y for Use React
      8. Choose a collection
      9. yarn run compress
      10. Reply N for Add deployment descriptor
      11. Access to build directory
      12. Assert the react fragment zip file is shown

      Case 5:
      The react fragment with invalid codes shouldn't be imported via Fragments Toolkit

      1. Open command line
      2. yarn global add generator-liferay-fragments
      3. yo liferay-fragment
      4. Access to project directory
      5. yo liferay-fragment:fragment or yarn run add-fragment
      6. Type name
      7. Reply Y for Use React
      8. Choose a collection
      9. Access to src/${collectionName}/${reactFragment}
      10. Modify some codes from files to invalid
      11. Back to project directory
      12. yarn run import
      13. Assert the Import failure message is shown in command line
      14. Navigate to Fragments admin
      15. Assert the react fragment is not shown

      Case 6:
      The build process can be configured by liferay-npm-bundler.config.js

      1. git clone https://github.com/p2kmgcl/testing-fragments.git
      2. Access to the project directory
      3. yarn install
      4. yarn run compress
      5. Access to build directory
      6. Assert the react fragment zip file is shown
      7. Back to project directory
      8. yarn run import
      9. Navigate to Fragments admin
      10. Assert the react fragments are shown

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package