diff --git a/e2e-tests/cypress.config.ts b/e2e-tests/cypress.config.ts index c3e5685d3..91518cae3 100644 --- a/e2e-tests/cypress.config.ts +++ b/e2e-tests/cypress.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'cypress' import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor' import browserify from '@badeball/cypress-cucumber-preprocessor/browserify' -let resetPasswordLink: string +let emailLink: string async function setupNodeEvents( on: Cypress.PluginEvents, @@ -18,11 +18,8 @@ async function setupNodeEvents( ) on('task', { - setResetPasswordLink: (val) => { - return (resetPasswordLink = val) - }, - getResetPasswordLink: () => { - return resetPasswordLink + setEmailLink: (link: string) => { + return (emailLink = link) }, })