-
Operating system
Fedora 21 and above (64-bit only)
-
Install Node.js 12 or 14 and above
sudo dnf install nodejs
OR
sudo dnf install npm # also installs nodejs
-
Upgrade Node to 12 or 14 or above
sudo npm install -g n
-
Clone automation repository
git clone https://github.com/konveyor/tackle-ui-tests.git
-
Go to folder and install
cd tackle-ui-tests
npm install .
-
Open Cypress and run test cases
npx cypress open
-
Format code
npm run format
-
Check formatting
npm run check
- Update Pull request with upstream main branch
- Pull requests will be tested against environment before merging to main codebase
- Pull request's owner must add RFR label once pull request is ready to test against environment
- After adding 'RFR' label; Owner should force push the pull request to trigger GitHub action
- In some cases, reviewer wants to trigger the PR test GH action but he/she can't force push the branch. Hence added feature of triggering GH action manually. Steps to trigger GH action for PR testing manually :- Go to Actions tab > Click on GH action(Pull request test) > Click on run workflow dropdown > select PR branch > Click on button Run workflow
-
To run tests based on tags, use below command -
npx cypress run --env grepTags=@tagName
-
To run multiple tags(tiers) in a single run, provide tag names appended in below format -
npx cypress run --env grepTags=@tag1+@tag2