fix mistake in cypress config

This commit is contained in:
mahula 2023-03-08 13:46:53 +01:00
parent 874fbe9540
commit 0d822d4240

View File

@ -2,7 +2,7 @@ import { defineConfig } from 'cypress'
import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor' import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor'
import browserify from '@badeball/cypress-cucumber-preprocessor/browserify' import browserify from '@badeball/cypress-cucumber-preprocessor/browserify'
let resetPasswordLink: string let emailLink: string
async function setupNodeEvents( async function setupNodeEvents(
on: Cypress.PluginEvents, on: Cypress.PluginEvents,
@ -18,11 +18,8 @@ async function setupNodeEvents(
) )
on('task', { on('task', {
setResetPasswordLink: (val) => { setEmailLink: (link: string) => {
return (resetPasswordLink = val) return (emailLink = link)
},
getResetPasswordLink: () => {
return resetPasswordLink
}, },
}) })