mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fixed user report test
This commit is contained in:
parent
cd40879c6e
commit
12d713d528
@ -1,4 +1,4 @@
|
||||
Feature: Report content
|
||||
Feature: Report and Moderate
|
||||
As a user
|
||||
I would like to report content that viloates the community guidlines
|
||||
So the moderators can take action on it
|
||||
|
||||
@ -85,11 +85,15 @@ Then('I get a success message', () => {
|
||||
|
||||
Then('I see my reported post', () => {
|
||||
cy.get('table').then(() => {
|
||||
cy.get('tbody tr:first-child()').contains(lastReportTitle.slice(0, 20))
|
||||
cy.get('tbody tr')
|
||||
.first()
|
||||
.contains(lastReportTitle.trim().slice(0, 20))
|
||||
})
|
||||
})
|
||||
Then('I see my reported user', () => {
|
||||
cy.get('table').then(() => {
|
||||
cy.get('tbody tr:first-child()').contains(lastReportTitle)
|
||||
cy.get('tbody tr')
|
||||
.first()
|
||||
.contains(lastReportTitle.trim())
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user