SetUp / download
- 32-bit Git for Windows Setup https://git-scm.com/download/win
- 32-bit node LTS Version: 8.11.3 https://nodejs.org/en/download/
- 32-bit vscode: https://code.visualstudio.com/docs/setup/windows
- webui front-end repository: clone/sync with github, save in your explorer: where you have other github repositories
- move it into vsc (pls ask metas-ts for details, can’t really remember this part)
- in node:
- $ cd /your/project/path => metasfresh webui front end
- $ npm install cypress –save-dev => cypress is installed
- have a dev instance / test environment
- create your own config file using the data from your environment
Steps
- open gitbash in metasfresh webui front end folder in explorer: right-click in folder, select / open gitbash here
- run CYPRESS_baseUrl=https://yoururlforrunningtests npm run cypress:open
- in Cypress select the test you want to run by just clicking on it
Writing Tests:
- write test in visual studio code
- save in metasfresh webui front end folder in explorer: => cypress.integration
Check your / all tests:
=> dashboard: https://dashboard.cypress.io/#/projects/5yp4q1/runs
Updated / new tests:
- sync metasfresh webui front end folder in github desktop
- config for your testing instance shall remain the same, is not set back by syncing!
More info:
=> README file in the webui-frontend repo
if problems, maybe bc of kaspersky: delete Cypress from user-xy-AppData-Local, and re-install via GitBash
View source file on GitHub.com