mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
e2e: add user muting step to chat notification test
This commit is contained in:
parent
3b491900fc
commit
ac57bd85e8
@ -12,6 +12,7 @@ Feature: Notifications for Chat Messages via E-Mail
|
||||
| Bob der Baumeister | bob-der-baumeister | moderator@example.org | 1234 | u2 | 0.0.4 |
|
||||
| Jenny Rostock | jenny-rostock | user@example.org | 1234 | u3 | 0.0.4 |
|
||||
| Nathan Narrator | nathan-narrator | narrator@example.org | abcd | u_nn | 0.0.4 |
|
||||
And "Bob der Baumeister" mutes "Nathan Narrator"
|
||||
|
||||
Scenario: No Chat Notification Email when Online
|
||||
Given I am logged in as "bob-der-baumeister"
|
||||
|
||||
@ -0,0 +1,14 @@
|
||||
import { defineStep } from '@badeball/cypress-cucumber-preprocessor'
|
||||
import './../../factories'
|
||||
|
||||
defineStep('{string} mutes {string}', (muterName, mutedName) => {
|
||||
cy.neode()
|
||||
.firstOf('User', { name: mutedName })
|
||||
.then(mutedUser => {
|
||||
cy.neode()
|
||||
.firstOf('User', { name: muterName })
|
||||
.then(muterUser => {
|
||||
cy.wrap(muterUser).relateTo(mutedUser, 'muted')
|
||||
})
|
||||
})
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user