Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add Test Cases #153

Merged
merged 12 commits into from
Jun 9, 2021
Merged

Feature: Add Test Cases #153

merged 12 commits into from
Jun 9, 2021

Conversation

kunalkumar007
Copy link
Contributor

@kunalkumar007 kunalkumar007 commented Jun 8, 2021

This branch adds a test feature to the Application.

Major Change:- downgraded React v17 to React v16 because adds extra functionality for React App.

Added Packages:-

  • Jest
  • Enzyme
  • react-test-renderer
  • enzyme-adapter-react-16
  • enzyme-to-json

Closes #99

@vercel
Copy link

vercel bot commented Jun 8, 2021

Someone is attempting to deploy a commit to a Personal Account owned by @stephin007 on Vercel.

@stephin007 first needs to authorize it.

@vercel
Copy link

vercel bot commented Jun 8, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/stephin007/cowin-vaccine-availablity-checker/A1NPPmqjPFjtvAcTcDyKy9DStLLU
✅ Preview: https://cowin-vaccine-git-fork-kunalkumar007-test-ste-888001.vercel.app

@kunalkumar007 kunalkumar007 changed the title Test Branch Created Add Test Cases Jun 8, 2021
@kunalkumar007 kunalkumar007 changed the title Add Test Cases Feature: Add Test Cases Jun 8, 2021
@stephin007
Copy link
Owner

@wise-introvert can you please review this PR!

@stephin007 stephin007 added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 8, 2021
@wise-introvert
Copy link
Contributor

wise-introvert commented Jun 8, 2021

@kunalkumar007 what does downgrading to v16 bring to the table?

Edit: saw the issue 😅

@wise-introvert
Copy link
Contributor

@kunalkumar007 The tests look great! Good job.

OUT

@stephin007
Copy link
Owner

@kunalkumar007 it would be great if you could update the documentation about how to run the tests in our local envs.

Then we can merge your request:🎉

Thanks❤️

@wise-introvert
Copy link
Contributor

wise-introvert commented Jun 8, 2021

@kunalkumar007, adding to @stephin007's comment above, please also add instructions on how to update snapshots because most of the changes, in the near future, will be UI-related and this will impact the existing snapshots.

Kunal Kumar added 2 commits June 9, 2021 08:42
Changes:
- snapshot script added
- coverage script added
@kunalkumar007
Copy link
Contributor Author

I have updated the docs.

  • In Contributing.md, I have added the instructions for running the test, snapshots, and the coverage report.
  • In Package.json, I have updated the scripts for running the test, snapshots, and coverage report.

Copy link
Owner

@stephin007 stephin007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by @wise-introvert

@stephin007 stephin007 removed the request for review from wise-introvert June 9, 2021 03:48
@stephin007 stephin007 merged commit 6d85673 into stephin007:NEW-UI Jun 9, 2021
@stephin007
Copy link
Owner

hey @kunalkumar007 Great work, your PR is now merged.
Would you like to join our core team to help to develop more feature to this project.
let me know your thoughts 😀

Thanks ❣️

@kunalkumar007
Copy link
Contributor Author

hey @kunalkumar007 Great work, your PR is now merged.
Would you like to join our core team to help to develop more feature to this project.
let me know your thoughts 😀

Thanks ❣️

I will be happy to join the team to develop awesome projects like this one.

@kunalkumar007
Copy link
Contributor Author

kunalkumar007 commented Jun 9, 2021 via email

@stephin007
Copy link
Owner

Awesome @kunalkumar007 , As we want more bright minds we would love to have you on our team!

Sending you the telegram invite link: https://t.me/joinchat/5WNdVxHJ9YRjN2Fl

@stephin007
Copy link
Owner

@kunalkumar007 can you please update when will you be joining?

@kunalkumar007
Copy link
Contributor Author

kunalkumar007 commented Jun 9, 2021 via email

stephin007 added a commit that referenced this pull request Jun 9, 2021
* Added Null State Component in NEW-UI

* ✨ added a seperate component

* Create PULL_REQUEST_TEMPLATE

* Added PR template

* removed pr template

* Created PR Template

* Edited path for PR Temmplate

* feat: add map to each result-card

* docs: contribution gudelines, refactor readme and pr template

docs: create os-related guidelines

docs: update readme and create open-source guidelines

docs: update pr template

docs: remove header from pr template

* docs: fix broken link

* added a loading componetn

* add basic dark/light mode functionality

* Delete package-lock.json

* refactor: remove unused vars

* feat: add marker component to pinpoint location on the map

refactor: switch to react-map-gl

 WIP: feat: marker

feat: marker component to pinpoint location on map

* refactor: remove static imports

refactor: use static imports

refactor: remove static imports

* fixed conflicts 🔨

* fixed conflicts 🔨

* refactor: remove unused vars

* fixed conflicts 🔨

* fixed conflicts 🔨

* edited .env.example

* Update CONTRIBUTING.md

* fix: merge conflicts

* Update Contributing.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* fixed responsive 🔨

* fixed responsiveness 🔨

* map error 🔨

* hidden map block for mobile devices

* Added initial look for about us page

* Added no of contributors

* dynamically get contributor data

* dynamically get contributor data

* Revert "About Page Revamp"

* Added contributors list in about page

* changed order

* Added user types

* made about page responsive

* did the changes again

* added image to error message

* added extra info to the about page

* Add license scan report and status (#131)

Signed off by: fossabot <badges@fossa.com>

* about page:darkmode compatible

* Deleted package-lock.json

* Revert "added a loading componetn"

This reverts commit 59e9212.

* reverted indentaions

* added === instead of ==

* Fixed wrong url being passed for git profiles

* fixed loading issue 🔨

* fixed loading issue 🔨

* Create codeql-analysis.yml

* Update README.md

* fixed max height of the contributors container.

* added contributors count

* added CSS for the contributor count

* responsive fix

* Added loading state in contributor section

* added links in the navbar

* added path to main app.js

* Update README.md

* fixed appResponsiveness 🔨 (#146)

* Feature: Add Whole world Vaccine Information (#145)

* added links in the navbar

* added path to main app.js

* added Seperate tabs

* renamed some files

* Added seperate file for world anf india

* Added paper for showing information

* centralised tabs

* Added css for info and fetched data

* responsive fixes

* fixed ccs

* Added cards on various info from world

* Destructured code

* responsive css

* changed paper title color

* destructered for a general view of data

* added error check

* content divided to components

* Added world covid data by continents

* Added loading before data is fetched

* Removed unecessary loading from india tab

* Enhancement: Enhanced the look for word COVID Info (#149)

* destructered for a general view of data

* added error check

* content divided to components

* Added world covid data by continents

* Added loading before data is fetched

* Removed unecessary loading from india tab

* removed unnecessary files

* Feature: Add Test Cases (#153)

* test setup completed

* add render Header test case

Because:
- checks weather components exists
- stops unnecessary errors

* click event tested, snapshot created

Because:
- better code coverage
- fix future errors

* tests folder created

* intro component tested

* home component tested

* covidInfoMain component tested

* handleTabChange test included

* about component tested

* docs updated for tests

* added test scripts in  package.json
Changes:
- snapshot script added
- coverage script added

Co-authored-by: Kunal Kumar <kunakumar06022003@gmail.com>

* removed pagination from default branch (#156)

Co-authored-by: Yash <super.nashik@gmail.com>
Co-authored-by: Wise Introvert <fardeen.wi.panjwani@gmail.com>
Co-authored-by: afif ahmed <afifahmed456123@gmail.com>
Co-authored-by: Ian Terada <teradaian@gmail.com>
Co-authored-by: Ian Terada <72109628+teradaian@users.noreply.github.com>
Co-authored-by: Justinnn07 <justinv2006@gmail.com>
Co-authored-by: Justin Varghese <69856008+Justinnn07@users.noreply.github.com>
Co-authored-by: Yash Patil <65940625+Yash-271120@users.noreply.github.com>
Co-authored-by: fossabot <badges@fossa.io>
Co-authored-by: mohammed afif ahmed <51887071+afif1400@users.noreply.github.com>
Co-authored-by: Kunal Kumar <55233386+kunalkumar007@users.noreply.github.com>
Co-authored-by: Kunal Kumar <kunakumar06022003@gmail.com>
stephin007 added a commit that referenced this pull request Jun 20, 2021
* Added Null State Component in NEW-UI

* ✨ added a seperate component

* Create PULL_REQUEST_TEMPLATE

* Added PR template

* removed pr template

* Created PR Template

* Edited path for PR Temmplate

* feat: add map to each result-card

* docs: contribution gudelines, refactor readme and pr template

docs: create os-related guidelines

docs: update readme and create open-source guidelines

docs: update pr template

docs: remove header from pr template

* docs: fix broken link

* added a loading componetn

* add basic dark/light mode functionality

* Delete package-lock.json

* refactor: remove unused vars

* feat: add marker component to pinpoint location on the map

refactor: switch to react-map-gl

 WIP: feat: marker

feat: marker component to pinpoint location on map

* refactor: remove static imports

refactor: use static imports

refactor: remove static imports

* fixed conflicts 🔨

* fixed conflicts 🔨

* refactor: remove unused vars

* fixed conflicts 🔨

* fixed conflicts 🔨

* edited .env.example

* Update CONTRIBUTING.md

* fix: merge conflicts

* Update Contributing.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* fixed responsive 🔨

* fixed responsiveness 🔨

* map error 🔨

* hidden map block for mobile devices

* Added initial look for about us page

* Added no of contributors

* dynamically get contributor data

* dynamically get contributor data

* Revert "About Page Revamp"

* Added contributors list in about page

* changed order

* Added user types

* made about page responsive

* did the changes again

* added image to error message

* added extra info to the about page

* Add license scan report and status (#131)

Signed off by: fossabot <badges@fossa.com>

* about page:darkmode compatible

* Deleted package-lock.json

* Revert "added a loading componetn"

This reverts commit 59e9212.

* reverted indentaions

* added === instead of ==

* Fixed wrong url being passed for git profiles

* fixed loading issue 🔨

* fixed loading issue 🔨

* Create codeql-analysis.yml

* Update README.md

* fixed max height of the contributors container.

* added contributors count

* added CSS for the contributor count

* responsive fix

* Added loading state in contributor section

* added links in the navbar

* added path to main app.js

* Update README.md

* fixed appResponsiveness 🔨 (#146)

* Feature: Add Whole world Vaccine Information (#145)

* added links in the navbar

* added path to main app.js

* added Seperate tabs

* renamed some files

* Added seperate file for world anf india

* Added paper for showing information

* centralised tabs

* Added css for info and fetched data

* responsive fixes

* fixed ccs

* Added cards on various info from world

* Destructured code

* responsive css

* changed paper title color

* destructered for a general view of data

* added error check

* content divided to components

* Added world covid data by continents

* Added loading before data is fetched

* Removed unecessary loading from india tab

* Enhancement: Enhanced the look for word COVID Info (#149)

* destructered for a general view of data

* added error check

* content divided to components

* Added world covid data by continents

* Added loading before data is fetched

* Removed unecessary loading from india tab

* removed unnecessary files

* Feature: Add Test Cases (#153)

* test setup completed

* add render Header test case

Because:
- checks weather components exists
- stops unnecessary errors

* click event tested, snapshot created

Because:
- better code coverage
- fix future errors

* tests folder created

* intro component tested

* home component tested

* covidInfoMain component tested

* handleTabChange test included

* about component tested

* docs updated for tests

* added test scripts in  package.json
Changes:
- snapshot script added
- coverage script added

Co-authored-by: Kunal Kumar <kunakumar06022003@gmail.com>

* removed pagination from default branch (#156)

* Merge to Staging  (#157)

* Added Null State Component in NEW-UI

* ✨ added a seperate component

* Create PULL_REQUEST_TEMPLATE

* Added PR template

* removed pr template

* Created PR Template

* Edited path for PR Temmplate

* feat: add map to each result-card

* docs: contribution gudelines, refactor readme and pr template

docs: create os-related guidelines

docs: update readme and create open-source guidelines

docs: update pr template

docs: remove header from pr template

* docs: fix broken link

* added a loading componetn

* add basic dark/light mode functionality

* Delete package-lock.json

* refactor: remove unused vars

* feat: add marker component to pinpoint location on the map

refactor: switch to react-map-gl

 WIP: feat: marker

feat: marker component to pinpoint location on map

* refactor: remove static imports

refactor: use static imports

refactor: remove static imports

* fixed conflicts 🔨

* fixed conflicts 🔨

* refactor: remove unused vars

* fixed conflicts 🔨

* fixed conflicts 🔨

* edited .env.example

* Update CONTRIBUTING.md

* fix: merge conflicts

* Update Contributing.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* fixed responsive 🔨

* fixed responsiveness 🔨

* map error 🔨

* hidden map block for mobile devices

* Added initial look for about us page

* Added no of contributors

* dynamically get contributor data

* dynamically get contributor data

* Revert "About Page Revamp"

* Added contributors list in about page

* changed order

* Added user types

* made about page responsive

* did the changes again

* added image to error message

* added extra info to the about page

* Add license scan report and status (#131)

Signed off by: fossabot <badges@fossa.com>

* about page:darkmode compatible

* Deleted package-lock.json

* Revert "added a loading componetn"

This reverts commit 59e9212.

* reverted indentaions

* added === instead of ==

* Fixed wrong url being passed for git profiles

* fixed loading issue 🔨

* fixed loading issue 🔨

* Create codeql-analysis.yml

* Update README.md

* fixed max height of the contributors container.

* added contributors count

* added CSS for the contributor count

* responsive fix

* Added loading state in contributor section

* added links in the navbar

* added path to main app.js

* Update README.md

* fixed appResponsiveness 🔨 (#146)

* Feature: Add Whole world Vaccine Information (#145)

* added links in the navbar

* added path to main app.js

* added Seperate tabs

* renamed some files

* Added seperate file for world anf india

* Added paper for showing information

* centralised tabs

* Added css for info and fetched data

* responsive fixes

* fixed ccs

* Added cards on various info from world

* Destructured code

* responsive css

* changed paper title color

* destructered for a general view of data

* added error check

* content divided to components

* Added world covid data by continents

* Added loading before data is fetched

* Removed unecessary loading from india tab

* Enhancement: Enhanced the look for word COVID Info (#149)

* destructered for a general view of data

* added error check

* content divided to components

* Added world covid data by continents

* Added loading before data is fetched

* Removed unecessary loading from india tab

* removed unnecessary files

* Feature: Add Test Cases (#153)

* test setup completed

* add render Header test case

Because:
- checks weather components exists
- stops unnecessary errors

* click event tested, snapshot created

Because:
- better code coverage
- fix future errors

* tests folder created

* intro component tested

* home component tested

* covidInfoMain component tested

* handleTabChange test included

* about component tested

* docs updated for tests

* added test scripts in  package.json
Changes:
- snapshot script added
- coverage script added

Co-authored-by: Kunal Kumar <kunakumar06022003@gmail.com>

* removed pagination from default branch (#156)

Co-authored-by: Yash <super.nashik@gmail.com>
Co-authored-by: Wise Introvert <fardeen.wi.panjwani@gmail.com>
Co-authored-by: afif ahmed <afifahmed456123@gmail.com>
Co-authored-by: Ian Terada <teradaian@gmail.com>
Co-authored-by: Ian Terada <72109628+teradaian@users.noreply.github.com>
Co-authored-by: Justinnn07 <justinv2006@gmail.com>
Co-authored-by: Justin Varghese <69856008+Justinnn07@users.noreply.github.com>
Co-authored-by: Yash Patil <65940625+Yash-271120@users.noreply.github.com>
Co-authored-by: fossabot <badges@fossa.io>
Co-authored-by: mohammed afif ahmed <51887071+afif1400@users.noreply.github.com>
Co-authored-by: Kunal Kumar <55233386+kunalkumar007@users.noreply.github.com>
Co-authored-by: Kunal Kumar <kunakumar06022003@gmail.com>

* removed stylecomponents

* removed stylecomponents (#162)

* Feature: Chart Added (#163)

* packages install react-chart-js-2

* chart completed

* continentChart Completed

* package-lock.json, yarn.lock deleted

* yarn.lock reverted

* header removed in chart and continentChart component

* doughnut chart implemented

* doughnut Chart for world added

* indentation improved-1

* doughnut in continentChart removed

Co-authored-by: Kunal Kumar <kunakumar06022003@gmail.com>

* aremoved package lock

* updated yarn lock file

* restructured the Charts file to the Worldcovid parent folder

* Updated the about page

* restructured the Charts file to the Worldcovid parent folder (#167)

* Added Scroll to top fucntionality (#169)

Co-authored-by: Yash <super.nashik@gmail.com>
Co-authored-by: Wise Introvert <fardeen.wi.panjwani@gmail.com>
Co-authored-by: afif ahmed <afifahmed456123@gmail.com>
Co-authored-by: Ian Terada <teradaian@gmail.com>
Co-authored-by: Ian Terada <72109628+teradaian@users.noreply.github.com>
Co-authored-by: Justinnn07 <justinv2006@gmail.com>
Co-authored-by: Justin Varghese <69856008+Justinnn07@users.noreply.github.com>
Co-authored-by: Yash Patil <65940625+Yash-271120@users.noreply.github.com>
Co-authored-by: fossabot <badges@fossa.io>
Co-authored-by: mohammed afif ahmed <51887071+afif1400@users.noreply.github.com>
Co-authored-by: Kunal Kumar <55233386+kunalkumar007@users.noreply.github.com>
Co-authored-by: Kunal Kumar <kunakumar06022003@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Test Cases
3 participants