Skip to content
Snippets Groups Projects
Commit 7cb95657 authored by jurgenhaas's avatar jurgenhaas
Browse files

amos/allianzapps/sites/azch#595 Add support for Cypress and Mailpit working together

parent a2ac6e92
No related branches found
No related tags found
No related merge requests found
Pipeline #1155848 passed
......@@ -134,3 +134,13 @@ Cypress.Commands.add('assertMailpitInbox', (callback) => {
callback(resp);
})
})
Cypress.Commands.add('assertMailpitMessage', (id, callback) => {
cy.request({
url: Cypress.env('mailpitUrl') + '/api/v1/message/' + id,
accept: 'application/json'
}).then((resp) => {
expect(resp.status).to.eq(200);
callback(resp);
})
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment