mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +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 => {
|
const savePostTitle = $post => {
|
||||||
return $post
|
return $post
|
||||||
.first()
|
.first()
|
||||||
.find('.ds-heading')
|
.find('.title')
|
||||||
.first()
|
.first()
|
||||||
.invoke('text')
|
.invoke('text')
|
||||||
.then(title => {
|
.then(title => {
|
||||||
@ -161,7 +161,7 @@ Then('each list item links to the post page', () => {
|
|||||||
Then('I can visit the post page', () => {
|
Then('I can visit the post page', () => {
|
||||||
cy.contains(annoyingUserWhoMutedModeratorTitle).click()
|
cy.contains(annoyingUserWhoMutedModeratorTitle).click()
|
||||||
cy.location('pathname').should('contain', '/post')
|
cy.location('pathname').should('contain', '/post')
|
||||||
.get('h3').should('contain', annoyingUserWhoMutedModeratorTitle)
|
.get('title').should('contain', annoyingUserWhoMutedModeratorTitle)
|
||||||
})
|
})
|
||||||
|
|
||||||
When("they have a post someone has reported", () => {
|
When("they have a post someone has reported", () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user