mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Added moderation menu item check for non moderators to be hidden
This commit is contained in:
parent
12d713d528
commit
9a63da733f
@ -39,5 +39,8 @@ Feature: Report and Moderate
|
||||
And I visit the "moderation" page
|
||||
Then I see my reported user
|
||||
|
||||
#Scenario: Normal user can't see the moderation page
|
||||
#Given I am logged in as "user"
|
||||
Scenario: Normal user can't see the moderation page
|
||||
Given I am logged in as "user"
|
||||
|
||||
When I can click on my profile picture in the top right corner
|
||||
Then I can't see the moderation menu item
|
||||
|
||||
@ -97,3 +97,10 @@ Then('I see my reported user', () => {
|
||||
.contains(lastReportTitle.trim())
|
||||
})
|
||||
})
|
||||
|
||||
Then(`I can't see the moderation menu item`, () => {
|
||||
cy.get('.avatar-menu').click()
|
||||
cy.get('.avatar-menu-popover')
|
||||
.find('a[href="/moderation"]')
|
||||
.should('have.length', 0)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user