Skip to content

panditiavinash/ea-coding-test-samples-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing EA Festivals Web Page

Pre-requisites to run the tests

- Node.Js
- npm or yarn

Commands to run the tests

- Clone the repository from Git Hub
- Run the festivals website (Follow the steps mentioned in "./web/README.MD")
- Test scripts are present in "web/cypress/e2e" this file path
- Run any the following command to install node.js libraries that are mentioned in packages.json
        - npm install
        - yarn install
- Run any of the following commands to excute the tests in headless mode
    - npx cypress run --reporter mochawesome
    - yarn cypress run --reporter mochawesome
- Run any of the following commands to excute the tests in headed mode. 
    - npx cypress run --headed  --browser <<browser name>> --reporter mochawesome
        - ex: npx cypress run --headed  --browser chrome --reporter mochawesome
    - yarn cypress run --headed  --browser <<browser name>> --reporter mochawesome
        - ex: yarn cypress run --headed  --browser chrome --reporter mochawesome
- In order to have a clean commands use any of the following command to execute the tests and generate html reports. For more info on these commands check the package.json-->scripts section
    - npm run test-code
    - yarn run test-code

Test Cases:

-  Verifies the title of the web page
-  Verifies the festival data. 
    - For each and every execution of web page, festival data is getting changed, hence after few observtions it is noticed that there are total is are a total of 18 set of festivals displayed on web page
    - A test data set is created and data that is coming in the web page is verified with the this test data to make sure that data is correctly populated

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published