mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix linting
This commit is contained in:
parent
b4d54cfc64
commit
00c15a9c18
@ -49,29 +49,25 @@ Then('the user receives an e-mail containing the {string} link', (linkName: stri
|
||||
.invoke('text')
|
||||
.then((text) => {
|
||||
const emailLink = text.match(linkPattern)[0]
|
||||
cy.task('setEmailLink', emailLink )
|
||||
cy.task('setEmailLink', emailLink)
|
||||
})
|
||||
},
|
||||
)
|
||||
})
|
||||
|
||||
Then('the user receives no password reset e-mail', () => {
|
||||
cy.origin(
|
||||
Cypress.env('mailserverURL'),
|
||||
{ args: { userEMailSite } },
|
||||
({ userEMailSite }) => {
|
||||
cy.visit('/')
|
||||
cy.wait(300)
|
||||
cy.get(userEMailSite.emailInbox).should('be.visible')
|
||||
cy.origin(Cypress.env('mailserverURL'), { args: { userEMailSite } }, ({ userEMailSite }) => {
|
||||
cy.visit('/')
|
||||
cy.wait(300)
|
||||
cy.get(userEMailSite.emailInbox).should('be.visible')
|
||||
|
||||
cy.get(userEMailSite.emailList).then(($emailList) => {
|
||||
const emailItems = $emailList.find('.email-item')
|
||||
if (emailItems.length > 0) {
|
||||
expect(emailItems.filter(`:contains("asswor")`).length).to.equal(0)
|
||||
}
|
||||
})
|
||||
}
|
||||
)
|
||||
cy.get(userEMailSite.emailList).then(($emailList) => {
|
||||
const emailItems = $emailList.find('.email-item')
|
||||
if (emailItems.length > 0) {
|
||||
expect(emailItems.filter(`:contains("asswor")`).length).to.equal(0)
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
When(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user