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

[UST-91] [Frontend] Add integration tests of vote feature #324

Open
UranusLin opened this issue May 5, 2024 · 0 comments
Open

[UST-91] [Frontend] Add integration tests of vote feature #324

UranusLin opened this issue May 5, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request feature new feature relayer test test improvements

Comments

@UranusLin
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
We need integration tests of vote future .

Describe the solution you'd like
Add relayer mock and add test script

  1. Should choose post correctly
  2. Should input the correct vote value
  3. Should submit vote successfully
  4. Should handle success/error messages
  5. Should update the vote count correctly(upvote, downvote, 取消 vote, 已 upvote 的狀態 downvote 應該要被 disabled)
  6. 首頁、貼文頁面,判斷同一使用者是否已曾經做過投票,並顯示正確的 upvote / downvote 狀態
@github-actions github-actions bot added feature new feature relayer test test improvements labels May 5, 2024
@UranusLin UranusLin self-assigned this May 5, 2024
@cc03668 cc03668 added the enhancement New feature or request label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature new feature relayer test test improvements
Projects
None yet
Development

No branches or pull requests

2 participants