Include a summary of the change, relevant motivation, and context.
This PR add the capability to run cypress automated tests in Chrome, Edge, and Firefox browsers both locally and in GitHub. To ensure the tests run concurrently for the three browsers, the cypress.yml workflow file has been modified to add containers where tests related to a particular browser runs in their respective container. Tests that use invoke command have been modified to use attribute for assertions.
fixes #(issue)
Type of change
[x] Task
[x] New feature
To Run Tests Locally: - In local the tests will run sequentially
Since these tests run on Chrome, Firefox and Edge, ensure you have the browsers installed on you local machine
[ ] Pull branch
[ ] start local
[ ] run npm run cy:run:cross-browser
[ ] Verify tests run against edge, firefox and edge in headless mode and that all tests pass. Below is a sample screenshot from Terminal
To Run the Tests in GitHub: - In GitHub the tests will run concurrently
[ ] In the project Actions tab, select “Run Cypress Tests” workflow and run the workflow against “913-cypress-test-automation-cross-browser-testing” branch.
PR Summary
Include a summary of the change, relevant motivation, and context. This PR add the capability to run cypress automated tests in Chrome, Edge, and Firefox browsers both locally and in GitHub. To ensure the tests run concurrently for the three browsers, the cypress.yml workflow file has been modified to add containers where tests related to a particular browser runs in their respective container. Tests that use invoke command have been modified to use attribute for assertions.
Type of change
To Run Tests Locally: - In local the tests will run sequentially
Since these tests run on Chrome, Firefox and Edge, ensure you have the browsers installed on you local machine
npm run cy:run:cross-browser
To Run the Tests in GitHub: - In GitHub the tests will run concurrently
[ ] In the project Actions tab, select “Run Cypress Tests” workflow and run the workflow against “913-cypress-test-automation-cross-browser-testing” branch.
[ ] Here are the results from the run