set timeout instead of wait in email step definition

This commit is contained in:
mahula 2023-03-02 13:52:10 +01:00
parent 10c7e8e2de
commit 567961947c

View File

@ -39,8 +39,7 @@ Then('the user receives an e-mail containing the {string} link', (linkName: stri
.find(userEMailSite.emailSubject)
.contains(emailSubject)
cy.get('.email-content')
.wait(2000)
cy.get('.email-content', { timeout: 2000})
.find('.plain-text')
.contains(linkPattern)
.invoke('text')