Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Setup Instructions
1. Prerequisites
Ensure you have Node.js installed (version 20 is recommended).
Ensure npm is installed (it comes with Node.js).
Install Dependencies
Install all required dependencies by running:
Running Tests Locally
1. Execute Cypress Tests
Run Cypress tests locally using the following command:
npm run test
2. Run Cypress Tests from the UI
To open the Cypress Test Runner and run tests interactively, use:
npx cypress open
This command launches the Cypress Test Runner, allowing you to manually run and debug your tests.
Running Tests in GitHub Actions
1.GitHub Actions Workflow
The GitHub Actions workflow is set up to automatically run Cypress tests on code push, pull requests, and manual triggers. The configuration is found in .github/workflows/cypress.yml.
Changes Introduced
1. New Tests
profilePage.spec.cy.js: Verifies that users can update their avatar with either JPG or PNG formats and that only image files are accepted.
registrationPage.spec.cy.js:
searchPage.spec.cy.js:
profilePage.spec.cy.js:
2. Custom Configuration
3. Mochaawesome Reporting
Added Mochaawesome reporter to generate comprehensive test reports and upload them to Uploadcare website (https://uploadcare.com/)
4. Additional Libraries:
Integrated the realcypress library for more reliable element interactions, such as clicking, mouse hover and other interactions.
5. Other:
/cypress/fixtures
folderadditional comments:
@sviataslau