Mailisk for Cypress

Test email + SMS workflows with Cypress

From email notifications to SMS alerts, promotional offers to authentication flows

Mailisk lets you build end-to-end tests for your email and SMS workflows, effortlessly.

  • Typed library
  • Built-in polling
  • Email & SMS support in one API

Integration example

Assert email or SMS responses

Trigger a workflow, then use the Mailisk Cypress commands to grab the email or SMS payload inside the same spec.

describe("Signup verification", () => {
  const namespace = "checkout-tests";
  const userEmail = `user@${namespace}.mailisk.net`;

  it("confirms the verification email", () => {
    cy.visit("/signup");
    cy.get("#email").type(userEmail);
    cy.contains("button", "Create account").click();

    cy.mailiskSearchInbox(namespace, {
      to_addr_prefix: userEmail,
      subject_includes: "Verify your account",
    }).then(({ data }) => {
      expect(data).to.not.be.empty;
      const email = data[0];
      const match = email.text.match(/https?:\/\/\S+/);
      expect(match).to.not.be.null;
      const link = match[0];
      cy.visit(link);
    });
  });
});

Add Mailisk to Cypress in minutes

Avoid brittle mocks. Hit the same verification emails your customers receive and assert their content with real data.

Step 1

Install the Mailisk Cypress plugin

Add the mailisk-cypress package, load it in cypress.config, and expose your API key through CYPRESS_MAILISK_API_KEY.

Step 2

Create a new namespace in the dashboard

Create a new namespace in the dashboard for use in tests.

Step 3

Assert emails & SMS

Call cy.mailiskSearchInbox or cy.mailiskSearchSms from within your tests and assert HTML, text, or links.

Why QA teams pair Mailisk with Cypress

Purpose-built Cypress commands

Use cy.mailiskSearchInbox() & cy.mailiskSearchSms() with the same chainable syntax you expect.

Easy to use

The library has been designed to be easy to use and understand.

Instant API visibility

Debug payloads directly from the dashboard or API client. Inspect headers, attachments, or OTP payloads instantly.

Test real attachments

Easily automate attachment testing. Every email response includes attachment metadata.

SMS testing included

Capture inbound SMS to validate MFA and passwordless logins alongside your email checks.

Secure EU hosting

Every message lives on GDPR-compliant infrastructure with configurable retention windows.

Use cases we power

Account & MFA verification

Generate OTP codes, parse verification links, and assert locale-specific templates from within Cypress.

Transactional notifications

Cover receipts, shipping updates, and billing alerts by checking headers, attachments, and SMS mirror messages.

Billing & receipts

Assert that payment confirmations display correct amounts and metadata by parsing structured payloads.

Preview emails in dashboard

Preview emails directly in the dashboard without sending them to yourself. Debug issues easily, see metadata and attachments.

Bring Mailisk to your Cypress CI

Catch regressions around email and SMS before they slip into production.