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

test: add test cases for notifications page #1001

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from

Conversation

tejaskh3
Copy link
Member

@tejaskh3 tejaskh3 commented Feb 5, 2025

Date: 6 Feb, 2025

Developer Name: @tejaskh3


Issue Ticket Number:-

Description:

  • in this PR we are adding the unit and integration test cases for /notifications page

Is Under Feature Flag

  • Yes
  • No

Database changes

  • Yes
  • No

Breaking changes (If your feature is breaking/missing something please mention pending tickets)

  • Yes
  • No

Is Development Tested?

  • Yes
  • No

Tested in staging?

  • Yes
  • No

Add relevant Screenshot below ( e.g test coverage etc. )

image

Note

  • in the percentage is shows unused JS and CSS coverage: src link
image

MayankBansal12 and others added 14 commits February 4, 2025 23:31
[My Site Migration] user status feature (Part - 1)
* basic setup and images and svg file

* profile route and controller

* changed urls.js file

* reverted sinon package and fixed css

* fixes of urls and yarn.lock and package.json file

* changed toast import

* moved profile fields to inside constants
* feat: add user status modal, controller for status

* refactor: use constants for messages, urls, modify naming

* chore: remove extra user_states in status modal

* refactor: get current status method in status modal

* refactor: status update for dev method

* test: simulate mock inViewport for members data test

---------

Co-authored-by: Achintya Chatterjee <[email protected]>
* feat: add css styles for user status component and modal

* fix: styles for user status, status modal for mobile responsiveness

* fix: remove duplicate css variables
* add integration tests for user-status components

* fix set prop error and modify test case in status modal

* add unit test for status route and component

* add unit test for dateConversion, redirectAuth utils

* fix: update test for user status, remove redirectAuth test

* fix: status naming in user status component test

---------

Co-authored-by: Vikas Singh <[email protected]>
Co-authored-by: Achintya Chatterjee <[email protected]>
* feat: migrate from yarn to pnpm package manager

* docs: update documentation for pnpm migration

* chore: remove unrelated changes to live.js

* chore: restore helpful comments in CI workflow

* chore: trigger CI

* chore: trigger CI
@tejaskh3 tejaskh3 self-assigned this Feb 5, 2025
@tejaskh3 tejaskh3 changed the title Feat/notifications page (feat) : /notifications page test cases Feb 5, 2025
Copy link

cloudflare-workers-and-pages bot commented Feb 5, 2025

Deploying www-rds with  Cloudflare Pages  Cloudflare Pages

Latest commit: fbfe01e
Status: ✅  Deploy successful!
Preview URL: https://15cde3a2.www-rds.pages.dev
Branch Preview URL: https://feat-notifications-page.www-rds.pages.dev

View logs

@ankushdharkar ankushdharkar self-requested a review February 6, 2025 19:30
Copy link
Member

@iamitprakash iamitprakash left a comment

Choose a reason for hiding this comment

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

@ankushdharkar
Copy link
Contributor

@iamitprakash We don't seem to have the coverage package installed. I feel that the coverage generation for this repo should be a separate task. It will be nice to automate the coverage and have it comment with the details from a bot

tests/integration/components/notification-card-test.js Outdated Show resolved Hide resolved
tests/integration/components/notification-card-test.js Outdated Show resolved Hide resolved
tests/integration/components/notification-card-test.js Outdated Show resolved Hide resolved
tests/unit/controllers/notifications-test.js Outdated Show resolved Hide resolved
tests/unit/routes/notifications-test.js Outdated Show resolved Hide resolved
tests/unit/routes/notifications-test.js Outdated Show resolved Hide resolved
@tejaskh3 tejaskh3 removed the request for review from Achintya-Chatterjee February 9, 2025 22:28
@tejaskh3 tejaskh3 changed the title (feat) : /notifications page test cases test: add test cases for notifications page Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MY SITE MIGRATION]: /notifications page
7 participants