/cypress-2023

Testing Stytch JavaScript SDK passwordless authentication flows using Cypress and Mailosaur

Primary LanguageJavaScriptMIT LicenseMIT

Stytch demo app + Cypress E2E tests

Testing Stytch JavaScript SDK passwordless authentication flows using Cypress and Mailosaur

This repository contains code from the talk Testing Passwordless Authentication Flows given at Cypress Conf 2023.

Installation

This repo uses node and yarn. We recommend using nvm to manage node versions locally.

nvm use
cd ./e2e-tests && yarn install
cd ../demo && yarn install && cd ..

Project Layout

  • demo contains a small React application with multiple login & authentication flows
  • e2e-tests contains a set of Cypress e2e tests that execute against the demo app

Running the E2E tests

Follow the setup instructions in /e2e-tests/README.md. By default the tests will run on our hosted version of the Stytch demo app. If you would like to run the Stytch demo app locally, follow instructions in /demo/README.md.