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

Code Coverage: test failing at src/components/UserPortal/EventCard/EventCard.test.tsx #1348

Closed
ALOK9442 opened this issue Jan 1, 2024 · 10 comments
Labels
bug Something isn't working test Testing application unapproved

Comments

@ALOK9442
Copy link

ALOK9442 commented Jan 1, 2024

1 test failing at src/components/UserPortal/EventCard/EventCard.test.tsx

To Reproduce
Steps to reproduce the behavior:

  1. run - npm run test and you'll find that 1 test failed at src/components/UserPortal/EventCard/EventCard.test.tsx

Expected behavior
test should pass and give output in terminal
(The card should be rendered properly, and all the details should be displayed correct)

Actual behavior
1 Test failed at await waitFor(() => expect(queryByText('7:49:12 PM')).toBeInTheDocument());
(
expect(received).toBeInTheDocument()

received value must be an HTMLElement or an SVGElement.
Received has value: null

)
Screenshots
Screenshot (71)

Additional details
we can solve this issue by matching the time format with 12 hour-format

Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship PalisadoesFoundation/talawa#359

@ALOK9442 ALOK9442 added the bug Something isn't working label Jan 1, 2024
Copy link

github-actions bot commented Jan 1, 2024

Congratulations on making your first Issue! 🎊 If you haven't already, check out our Contributing Guidelines and Issue Reporting Guidelines to ensure that you are following our guidelines for contributing and making issues.

@github-actions github-actions bot added test Testing application unapproved labels Jan 1, 2024
@ALOK9442
Copy link
Author

ALOK9442 commented Jan 1, 2024

I want to work on this issue.

@palisadoes
Copy link
Contributor

Why hasn't this test been failing as part of our pull request testing workflow? All tests are run as a part of that process

@ALOK9442
Copy link
Author

ALOK9442 commented Jan 2, 2024

I tried running test without changing any file and it keeps failing and when I am doing certain changes at that place it gets passed,
so I am not sure about where I am going wrong so that it keeps failing in my system though I looked up in my localhost and couldn't find the error about why it failing in here
and I am unsure about why hasn't this test been failing as part of pull requests

@palisadoes
Copy link
Contributor

  1. You are probably using a non v20 version of node.
  2. Closing.
  3. If using node v20 doesn't fix the issue, then ask to reopen it.

@nitishkumar333
Copy link
Contributor

@palisadoes I am also facing the same issue and my node version is v20.10.0 , also my branch is up to date.

@ALOK9442
Copy link
Author

ALOK9442 commented Jan 2, 2024

I am using the node v20.10.0 only and still facing the same issue.
kindly look into this matter

@palisadoes
Copy link
Contributor

You'll need to investigate this yourselves. It is not failing in our workflows

@ALOK9442
Copy link
Author

ALOK9442 commented Jan 2, 2024

can you please guide me how can I get rid of this issue?
I have forked the repo again and did everything from start, followed every step written in INSTALLATION.md file and after this I run the command "npm run test" and stil facing the same issue.
your guidance on this matter will be greatly appreciated.

@palisadoes
Copy link
Contributor

Please ask the #talawa-admin slack channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working test Testing application unapproved
Projects
None yet
Development

No branches or pull requests

3 participants