Skip to content

Releases: SMenigat/cypress-mailhog

Update SPDX license id

17 Dec 07:52
20f0d8d
Compare
Choose a tag to compare
  • updates SPDX license id to be "MIT" instead of "mit" (@jahndis #57)

mhSearchMails helper

28 Jun 06:16
7842d67
Compare
Choose a tag to compare
  • added mhSearchMails for fetching a filtered list of mails (@3breadt)
  • added timeout property to mhDeleteAll (@3breadt)
  • fixed problem where a trailing / in the mailhog base path would lead to problems (@3breadt)

New Filter methods, Attachment handling and Waiting

06 Nov 13:28
Compare
Choose a tag to compare

New filter methods that are chainable 🔍

  • .mhFilterBySubject(subject) to filter fetched messages by subject
  • .mhGetMailsBySender(sender) to filter fetched messages by sender
  • .mhGetMailsByRecipient(recipient) to filter fetched messages by recipient

Built in helper to assert attachments ✨

  • .mhGetAttachments() returns a string[] containing all attached files names

New helper to dynamically wait ⏳

  • cy.mhWaitForMails(moreMailsThen) waits until MailHog holds more then the given moreMailsThen number of mails. This is useful when using chained filters or other factors that prevent our automatic refetching.

Cypress Upgrade to v12.13.0 (v2.2.0)

30 May 19:11
83c91d8
Compare
Choose a tag to compare
  • upgrades main cypress installation to v12.13.0

Test Server upgraded to Cypress v12.13.0 (v2.1.0)

29 May 10:52
Compare
Choose a tag to compare
  • Test Server's Cypress was upgraded to v12.13.0
  • Readme updated to include new testing instructions and fixed some grammar errors and typos
  • MailHog auth credentials now configurable via environment (thanks to @pushpak1300)
  • Various minor package upgrades to keep this project up to date

MIT License

20 Apr 10:42
926e097
Compare
Choose a tag to compare
  • changed from GPL-2.0 to MIT license

Automatic Retry (v2.0.0)

06 Mar 07:12
7fdfab2
Compare
Choose a tag to compare
  • Thanks to @xelaris we have automatic retry implemented now ❤️

Updated docs for Cypress v10+

24 Jan 10:26
Compare
Choose a tag to compare

Thanks to @Pashozator we got some updated docs now clearly stating how to configure cypress-mailhog for Cypress >= v10.x.
Additionally we bumped some minor versions of some dependencies (thanks to dependabot).

Basic Auth Support, Message Limit

14 Aug 17:30
4f32f8c
Compare
Choose a tag to compare

Thanks to @danisawesome we have the following features now:

  • Basic authentication via the mailHogAuth Cypress env var. This takes a JSON object with user and pass keys along with their respective values. Example can be found in the README (more info on auth handling here: https://github.com/request/request#http-authentication)
  • An optional limit argument for mhGetAllMails(), mhGetMailsBySubject(), mhGetMailsByRecipient(), and mhGetMailsBySender() mail collection commands.

Readme Corrections

02 Nov 07:00
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.4.0...v1.5.0