UI Test Framework Setup For Jungle.co. This UI suite contains simple test cases to test the Jungle.co. I have used BDD Model to setup this Framework. For that I have used Gherkin(Cucumber) language with Cypress and JavaScript. To start follow below steps.
Open the repo on git hub web: https://github.com/vipkum2/Jungle
Go to Action tab and select the workflow(Run Jungle Framework): https://github.com/vipkum2/Jungle/actions/workflows/main.yml
Click on "Run workflow" from right pannel like:
PS: If you are not able to see the "Run workflow" option, then might clone repo and push something. So after that you might get this option.
See the results here: https://vipkum2.github.io/Jungle/
You can also download the artifacts reports: https://github.com/vipkum2/Jungle/actions/runs/2216058969
Clone Jungle Repo: git clone git@github.com:vipkum2/Jungle.git
Node (v14.16.1) installation: https://nodejs.org/en/download/
asdf installation: OS basis installation guide: https://asdf-vm.com/#/core-manage-asdf?id=install
yarn installation: asdf install yarn 1.22.17
yarn install
#Execute below on terminal from inside jungle folder:
yarn cypress open
Now click on feature file and it will start to running the cases with Chrome or browser you choose.
#We can execute the same on command line as well with below command:
yarn cypress run
It will execute all cases in command line and will print the report summary end of file.
You can also find Video of execution in dir: cypress/videos/Cucumber
You can find json and html report as well in dir: cypress/reports/report.html, cypress/reports/report.json
Reports will publish for each run here if run by github Action: https://vipkum2.github.io/Jungle/
You can also see the reports by navigate to Actions tab on git hub web.
You can find one reports here for example: https://github.com/vipkum2/Jungle/actions/runs/2215625138
You can also downlaod the reports on local from Github Actions: click on Summary -> jungle-artifacts
it will download .zip folder that contains index.html as report.