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 Checking Pin Button Visibility #44

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Conversation

karengc27
Copy link

@karengc27 karengc27 commented Oct 10, 2024

This test case checked to make sure there would be an error when a non-admin user tries to pin a post since they don't have the privileges necessary to do so.

Added test case in nodebb-f24-team-sweepers/test/topics.js
Test case checks that a regular user that is not admin does not have access to pin button or functionality.

Note: issues with committing front-end submodule occurred, this is my attempt at fixing them. I made the same changes as #43 , so the commits in that pull request reflect the actual commits made. This pull request is to avoid an issue that the front-end repo caused when committing for pull request 43, and to not cause any errors on the sprint2-main branch.

This is what the view looks like for a non-admin account which does not and should not be able to see the pin button.
Screenshot 2024-10-10 at 12 49 36 PM

This is what it looks like when user is admin:
Screenshot 2024-10-10 at 12 49 53 PM

@karengc27 karengc27 requested a review from Alanna-Cao October 10, 2024 16:45
Copy link

@Alanna-Cao Alanna-Cao left a comment

Choose a reason for hiding this comment

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

This looks good!

@karengc27 karengc27 merged commit 63a22e3 into sprint2-main Oct 10, 2024
1 check passed
@karengc27 karengc27 added this to the Sprint 2 milestone Oct 10, 2024
@karengc27 karengc27 changed the title Test checking pin button visibility Test Checking Pin Button Visibility Oct 11, 2024
@karengc27 karengc27 added enhancement New feature or request and removed enhancement New feature or request labels Oct 11, 2024
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.

2 participants