Questions tagged [cypress-mailosaur]

6 questions
3
votes
5 answers

Catching emails with Cypress-Mailosaur

I have a test where I need to test a confirmation link in an email being sent. Im at a point where I am catching the email and getting the link, but when I then try to visit that link I am getting an error link not defined it("I fill out the…
ItsNotAndy
  • 563
  • 5
  • 17
2
votes
3 answers

cy.visit() does not recognize a URL being passed in as an argument

This is my first time using Cypress (and first SO post) and I keep running into an error. First, here is my code: describe('Add new user to existing clinic team', () => { const serverId = 'e6ar8r9c'; const testEmail =…
KDavid
  • 21
  • 2
2
votes
1 answer

Cypress: Can I use a value in the log as a string?

Currently I have my Cypress code writing out an email verification code to the log. I need to take the six numbers from this value, to be inserted into a text field as a string. The code I have in Cypress looks like this. And the line of code…
1
vote
1 answer

Cypress: How to retrieve One-time Passcode from created virtual device on Mailosaur

I have a virtual device set up on Mailosaur, as seen below. Within this image, you can see the "Reveal One-Time Passcode" button. I have checked that the passcode works with the website I am working with, and now I am trying to create a Cypress…
1
vote
1 answer

Cypress: How do I visit, or type a generated URL into the Cypress browser

I currently have an email SMTP server that sends an email, that generates a URL. I am able to get the contents of the URL from the email, but I want to then visit, or type this URL into the current Cypress address bar. The code I have in Cypress…
0
votes
1 answer

Unable to catch email body with Cypress-Mailosaur

This the email. It is in HTML and I am trying to retrieve the code I am getting this I just put an assertion just to check if I am getting the body of the email but the error says it's ''