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

feat: adding unit tests for community folder #1761

Merged
merged 12 commits into from
Jun 17, 2023

Conversation

reachaadrika
Copy link
Contributor

Description

Community section of the website comprises of 4 components , header ,hero component and cards components which are of 2 types HomeCard and Card ( which has 2 props namely 'small' and 'large' . A brief description about each component and tests included in them is given below :

  1. Header.js : This component is the normal heading component for this section which consists of some hardcoded text and subheadings related to it . The tests that I included for this component were as follows :
  • renders the Header component correctly
  • displays the correct text in the Heading components and styles
  • contains a Button component with the correct props (link to AsyncAPI discussions )
    image
    image
  1. Hero.js : This component has a orbit like structure . The tests I included for this component were as follows :
  • renders the complete component
  • renders the first orbit with orbitData
  • renders the second orbit with orbitData
  • renders the third orbit with orbitData
    image
    image
  1. HomeCard.js : This component had headings and taglines props passed to , so I have passed some dummy texts and have tested for the same .
  • renders correctly
    image
  1. Card.js : This component is of 2 types , one is small cards and other one is for large cards . So I have tested for small prop and large prop separately along with their styles . Following are the tests :
  • renders small card correctly
  • renders large card correctly
    image

Related issue(s)
Fixes #1760

@netlify
Copy link

netlify bot commented Jun 8, 2023

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 30cbb41
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/648da96863af1100086850e1
😎 Deploy Preview https://deploy-preview-1761--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@reachaadrika reachaadrika changed the title feat : added unit tests for community component feat: adding unit tests for community folder Jun 8, 2023
@github-actions
Copy link

github-actions bot commented Jun 8, 2023

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 42
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🔴 PWA 30

Lighthouse ran on https://deploy-preview-1761--asyncapi-website.netlify.app/

@imabp
Copy link
Member

imabp commented Jun 13, 2023

Resolve the conflicts before merging

@akshatnema akshatnema added the gsoc This label should be used for issues or discussions related to ideas for Google Summer of Code label Jun 16, 2023
@akshatnema
Copy link
Member

/rtm

@asyncapi-bot asyncapi-bot merged commit e1c31b6 into asyncapi:master Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gsoc This label should be used for issues or discussions related to ideas for Google Summer of Code ready-to-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add unit tests for 'community' component
4 participants