FordLabs / retroquest

DEPRECATED ⛔️: RetroQuest is a website that enables teams to run retrospectives online.
Apache License 2.0
57 stars 37 forks source link

E2E test reset and recovery emails in Cypress #516

Closed RandomAshes closed 1 year ago

RandomAshes commented 1 year ago

Overview

We added functionality within the app that sends emails to users, but we did not have that flow tested from e2e. This PR uses cypress-mailhog to intercept the emails within our cypress tests, confirm they are correct, and test the links that are sent within them

Testing Instructions

Test in Github Actions: 1) Run cypress test and ensure that the full email flow is being tested.

Test Locally: 1) See docs: https://github.com/FordLabs/retroquest/blob/b61d84f52a5a03b92778775c0ba81ffb5acd207a/ui/cypress/README.md#start-the-email-interceptor 2) Ensure docs make sense and successfully allow you to run cypress tests with email testing.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information