Using Puppeteer & Jest, scripts to test and automate some of the Aventum features.
- Rename
sample.env
to.env
and put your own conjurations. - Setup the first super user by running
npm run test:serially -- setup.test.js
. - Upload the files by running
npm run test:serially -- uploads.test.js
. - Create Comments schema by running
npm run test:serially -- create.comments.schema.test.js
- Create Comment items by running
npm run test:serially -- create.comments.contents.test.js
- Create CustomField1 schema by running
npm run test:serially -- create.customField1.schema.test.js
- Create CustomField2 schema by running
npm run test:serially -- create.customField2.schema.test.js
- Create Schemas1 schema by running
npm run test:serially -- create.schemas1.schema.test.js
- Create Schemas1 items by running
npm run test:serially -- create.schemas1.contents.test.js
- Update Schemas1 items by running
npm run test:serially -- update.schemas1.contents.test.js
- Optional register users
npm run test:serially -- register.test.js
.
Make sure VcXsrv Windows X Server up and running
docker build -t aventum-e2e .
# Notice the IP 192.168.0.15, find your IP using ipconfig
docker run --network=host -v /app/node_modules -v ${pwd}:/app -e 'DISPLAY=192.168.0.15:0' -it aventum-e2e
Make sure VcXsrv Windows X Server up and running
docker build -t aventum-e2e .
# Notice the IP 192.168.0.15, find your IP using ipconfig
docker run --network=host -v /app/node_modules -v $PWD:/app -e 'DISPLAY=192.168.0.15:0' -it aventum-e2e