Releases: SMenigat/cypress-mailhog
Releases · SMenigat/cypress-mailhog
Update SPDX license id
mhSearchMails helper
New Filter methods, Attachment handling and Waiting
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 astring[]
containing all attached files names
New helper to dynamically wait ⏳
cy.mhWaitForMails(moreMailsThen)
waits until MailHog holds more then the givenmoreMailsThen
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)
- upgrades main cypress installation to v12.13.0
Test Server upgraded to Cypress v12.13.0 (v2.1.0)
- 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
- changed from
GPL-2.0
toMIT
license
Automatic Retry (v2.0.0)
- Thanks to @xelaris we have automatic retry implemented now ❤️
Updated docs for Cypress v10+
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
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
What's Changed
- Update README by @juliangeissler in #21
- Update README by @juliangeissler in #22
New Contributors
- @juliangeissler made their first contribution in #21
Full Changelog: v1.4.0...v1.5.0