From 00c15a9c18fe7fdb63310241905e0c030efddbd3 Mon Sep 17 00:00:00 2001 From: mahula Date: Thu, 29 Jun 2023 11:45:59 +0200 Subject: [PATCH] fix linting --- .../support/step_definitions/email_steps.ts | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/e2e-tests/cypress/support/step_definitions/email_steps.ts b/e2e-tests/cypress/support/step_definitions/email_steps.ts index 80581ad01..414490cda 100644 --- a/e2e-tests/cypress/support/step_definitions/email_steps.ts +++ b/e2e-tests/cypress/support/step_definitions/email_steps.ts @@ -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(