fix passwordreset e2e test

This commit is contained in:
mahula 2023-06-20 11:26:07 +02:00
parent 1cb89ad7c4
commit 5345efed4e

View File

@ -88,13 +88,16 @@ And('the user receives the transaction e-mail about {string} GDD from {string}',
})
When('the user opens the {string} link in the browser', (linkName: string) => {
const resetPasswordPage = new ResetPasswordPage()
cy.task('getEmailLink').then((emailLink) => {
cy.visit(emailLink)
})
switch (linkName) {
case 'activation':
const resetPasswordPage = new ResetPasswordPage()
cy.get(resetPasswordPage.newPasswordInput).should('be.visible')
break
case 'password reset':
cy.get(resetPasswordPage.newPasswordInput).should('be.visible')
break
case 'transaction':