Affects Version/s: None
Fix Version/s: None
Component/s: JS APIs and Utilities
Create test automation to validate the critical test scenarios/cases of the related story.
The focus of this task is to implement the CRITICAL and MAJOR tests of the parent epic, but if you believe that can and have time to implement the lower priority tests please, create one more subtask to it, and go ahead!
|Requirement||Test Scenarios||Covered by frontend/backend Unit Test?||Test Priority (business impact)||Chrome
|cli tool is intended for non-ootb portal projects. Meaning js projects created from cli/scratch/workspace/template/etc||Given `@liferay/cli` is used via npx
When run `npx liferay new my-react-project-test`
Then a module is created with all necessary js dependencies for the given target platform (ie: *-7.4-GA1)
|Given `@liferay/cli` is used via npx
When run `liferay new my-react-project-test`
And When input an invalid platform (ie: *-7.3-GA1)
Then error message is given and module is not created
|allow developers to only have a single dependency for their JS project and scope it to a single release of dxp||Given a sample-project index.js/App.js referencing several known dependencies
And Given package.json file under dependency only lists "@liferay/portal-7.4-ga1": "^1.0.0"
And Given package.json contains a build script with `liferay build`
When run `npm build`
Then the project is built with all known 7.4 GA1 js dependencies listed in the package.json file
And Then only the minimum necessary dependencies are defined by Liferay AMDLoader