e2e: add mailserver clearing step

This commit is contained in:
mahula 2025-05-06 20:01:50 +02:00
parent 0b7a004c90
commit a7c588edd4
2 changed files with 8 additions and 0 deletions

View File

@ -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"

View File

@ -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'