mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix passwordreset e2e test
This commit is contained in:
parent
1cb89ad7c4
commit
5345efed4e
@ -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':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user