cypress-mailhog
cypress-mailhog copied to clipboard
Question - Does this also support keycloak based mailhog authentication?
First of all thanks for this utility. I am currently having challenges using this library as our Mailhog server authentication is via keycloak. Please could you confirm, that the library is capable of handling the keycloak-based authenticate as well internally?
Hi, thanks for using this library. Currently third party auth is not supported. Are you currently using a centralized MailHog instance? That would lead to very unreliable tests by design since other test runs that could run in parallel would meddle with the state of your MailHog instance. Did you already think about utilizing the prebuilt mailhog docker container for your local dev environment and your CI workflows?
Currently, we are using a centralized Mailhog instance. I will check with our development team about whether the prebuilt Mailhog instance config is easy to achieve or not.
Hi, @SMenigat I am now using the basic authentication as you recommended and able to make a connection. I just wanted to ask you, is there any inbuilt method in the library for me to get a specific link in the email body which I wanted to click and continue in my test script?
Looks like I need to get the whole body and format the body text the way I want. Pls let me know if there's any better way to do it.
@SMenigat Pls ignore the previous question and I found a way to sort it out. I have now another question - it seems we cannot filter something like cy.mhHasMailTo
AND mhGetMailsBySubject(subj)
. Instead of applying AND
condition it is actually an OR