JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2047
  • Score
    100M100P100Q122998F
  • License ISC

Provides temporary email and sms for E2E testing with Cypress

Package Exports

  • cypress-temp-mail
  • cypress-temp-mail/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cypress-temp-mail) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cypress-temp-mail

TempMail-Cypress is a lightweight npm library designed to generate temporary email addresses for end-to-end testing with Cypress. It streamlines the process of testing email-related functionalities in your applications.

Features

  • Quick Setup: Easily integrate with your Cypress tests.
  • Disposable Emails: Generate temporary emails for testing sign-ups, password resets, and more.

Installation

Install cypress-temp-mail-sms using npm:

npm install cypress-temp-mail --save-dev

Usage

Import cypress-temp-mail-sms in your Cypress commands.js file:

Generate a new temporary email:

cy.createTempMail()  //Retuens you a temp email generated using

Check the inbox:

cy.getLastEmail()  //Returns below object for the latest created email . 

===

{
    subject: //latest mail subject,
    text: //latest mail body as text,
    html: //latest mail body as html,
    inboxMailCount: //mailbox count
}

To get the mail for specific account

cy.getLastEmail({email: 'abc@ethereal.com', password: 'abc@123!'}) 

Contributing

Contributions are welcome! Please read our Contributing Guide for details on our code of conduct, and the process for submitting pull requests.

Owner

[https://rajmadhan009.wixsite.com/madhanselvaraj] ( Mr. Madhan Raj )

[www.linkedin.com/in/madhanrajselvaraj] ( Linkedin )