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

Implement unit tests for the bounties home page #934

Closed
ecurrencyhodler opened this issue Nov 13, 2023 · 1 comment
Closed

Implement unit tests for the bounties home page #934

ecurrencyhodler opened this issue Nov 13, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@ecurrencyhodler
Copy link
Contributor

ecurrencyhodler commented Nov 13, 2023

Let's use this ticket to keep track of the various areas on the home page we have to create unit tests for.

Signed out perspective

View

View home page

  • I should be able to view the listed bounties when I'm signed out

  • I should be able to view all bounties created by a specific organization

  • I should be able to view the listed people when I'm signed out

  • I should be able to load more bounties

  • I should be able to view the Login button

  • I should be able to view the Get Sphinx button

  • I should be able to view the Leaderboard and Post bounty button
    [Bounty Homepage-Signed Out] Create unit tests for Homepage from signed-out perspective pt.1 #955

  • Create a mock for the user's local storage, here's an example of mocking local storage Local Storage Mock.

  • Mock the ui.meInfo data in store/ui.ts

  • Be able to create and delete mock ui.meinfo.
    [Bounty Homepage-Signed In] Create mock data for unit tests on homepage #972

  • I should be able to test that the signed-in user details are persisted in the local storage

  • I should be able to test that when signed out the user data is deleted

  • I should be able to test that signed-in user details can be displayed such as the name and pubkey.

  • I should be able to test that a signed-in user can update their details

  • I should be able to test that a signed-in user can make an API request without getting a 401 (unauthorized error)

  • I should be able to test that when a user is signed out, a user will get a 401 error if they make an API call
    [Bounty Homepage-Signed In] Create unit tests for Homepage from a signed-out perspective pt.2 #971

Filter

Signed in perspective

View signed in home page

Bounty Creation

@kevkevinpal
Copy link
Contributor

#955

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants