mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
e2e: add mailserver clearing step
This commit is contained in:
parent
0b7a004c90
commit
a7c588edd4
@ -16,6 +16,7 @@ Feature: Notifications for Chat Messages via E-Mail
|
||||
| Billy Block | billy-block | billy@example.org | 4321 | u_bb | 0.0.4 |
|
||||
And "Bob der Baumeister" mutes "Nathan Narrator"
|
||||
And "Bob der Baumeister" blocks "Billy Block"
|
||||
And the mailserver inbox is empty
|
||||
|
||||
Scenario: Receive Chat Notification Email only when Online
|
||||
When "Jenny Rostock" sends a chat message to "Bob der Baumeister"
|
||||
|
||||
@ -2,6 +2,13 @@ import { defineStep } from '@badeball/cypress-cucumber-preprocessor'
|
||||
|
||||
const emailClientList = '.email-list'
|
||||
|
||||
|
||||
defineStep('the mailserver inbox is empty', () => {
|
||||
cy.request('DELETE', 'localhost:1080/email/all')
|
||||
.its('status')
|
||||
.should('equal', 200)
|
||||
})
|
||||
|
||||
defineStep('{string} should receive no chat notification email', (recipientEmailAddress) => {
|
||||
const emailTitle = 'Neue Chat-Nachricht | New chat message'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user