UNPKG

@seriesfi/cypress-courier

Version:

A Cypress plugin for handling email testing with Courier

18 lines 551 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Cypress.Commands.add('listMessages', (params) => { const { courierAuthToken } = Cypress.env(); const options = { url: 'https://api.courier.com/messages', method: 'GET', auth: { bearer: courierAuthToken }, qs: params }; cy.request(options).then((response) => { expect(response.status).to.eq(200); return response.body; }); }); //# sourceMappingURL=listMessages.js.map