mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
fix final failing cypress test
This commit is contained in:
parent
53931a38e5
commit
f1efdbad7d
@ -12,7 +12,7 @@ let annoyingUserWhoMutedModeratorTitle = 'Fake news'
|
||||
const savePostTitle = $post => {
|
||||
return $post
|
||||
.first()
|
||||
.find('.ds-heading')
|
||||
.find('.title')
|
||||
.first()
|
||||
.invoke('text')
|
||||
.then(title => {
|
||||
@ -161,7 +161,7 @@ Then('each list item links to the post page', () => {
|
||||
Then('I can visit the post page', () => {
|
||||
cy.contains(annoyingUserWhoMutedModeratorTitle).click()
|
||||
cy.location('pathname').should('contain', '/post')
|
||||
.get('h3').should('contain', annoyingUserWhoMutedModeratorTitle)
|
||||
.get('title').should('contain', annoyingUserWhoMutedModeratorTitle)
|
||||
})
|
||||
|
||||
When("they have a post someone has reported", () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user