-
Type:
Technical Testing
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Fragments Toolkit
-
Labels:None
Product QA | Test Validation - Round 1
Bugs:
- PASS
- To Do
- FAIL
- Impeditive:
Ticket Title QA Status ? ? LPS-123077The set up company Web ID and group key steps shouldn't be shown when choose no for deployment decriptor Verified LPS-123078The 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
- Open command line
- yarn global add generator-liferay-fragments
- yo liferay-fragment
- Access to project directory
- yo liferay-fragment:fragment or yarn run add-fragment
- Type name
- Reply Y for Use React
- Choose a collection
- Access to src/${collectionName}
- Assert the react fragment folder is shown
Case 2:
Import a react fragment via Fragments Toolkit
- Open command line
- yarn global add generator-liferay-fragments
- yo liferay-fragment
- Access to project directory
- yo liferay-fragment:fragment or yarn run add-fragment
- Type name
- Reply Y for Use React
- Choose a collection
- yarn run import
- Assert the Import successful message is shown in command line
- Navigate to Fragments admin
- Assert the react fragment is shown
Case 3:
Compress a react fragment via Fragments Toolkit
- Open command line
- yarn global add generator-liferay-fragments
- yo liferay-fragment
- Access to project directory
- yo liferay-fragment:fragment or yarn run add-fragment
- Type name
- Reply Y for Use React
- Choose a collection
- yarn run compress
- Reply Y for Add deployment descriptor
- Reply liferay.com as company Web ID
- Reply Guest as group key
- Access to build directory
- Assert the react fragment zip file is shown
Case 4:
Compress a react fragment without description descriptor via Fragments Toolkit
- Open command line
- yarn global add generator-liferay-fragments
- yo liferay-fragment
- Access to project directory
- yo liferay-fragment:fragment or yarn run add-fragment
- Type name
- Reply Y for Use React
- Choose a collection
- yarn run compress
- Reply N for Add deployment descriptor
- Access to build directory
- Assert the react fragment zip file is shown
Case 5:
The react fragment with invalid codes shouldn't be imported via Fragments Toolkit
- Open command line
- yarn global add generator-liferay-fragments
- yo liferay-fragment
- Access to project directory
- yo liferay-fragment:fragment or yarn run add-fragment
- Type name
- Reply Y for Use React
- Choose a collection
- Access to src/${collectionName}/${reactFragment}
- Modify some codes from files to invalid
- Back to project directory
- yarn run import
- Assert the Import failure message is shown in command line
- Navigate to Fragments admin
- Assert the react fragment is not shown
Case 6:
The build process can be configured by liferay-npm-bundler.config.js
- git clone https://github.com/p2kmgcl/testing-fragments.git
- Access to the project directory
- yarn install
- yarn run compress
- Access to build directory
- Assert the react fragment zip file is shown
- Back to project directory
- yarn run import
- Navigate to Fragments admin
- Assert the react fragments are shown