From 8c2c64cdeb6b29b02108d636bb68f2a07347f435 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Wed, 16 Oct 2024 15:00:11 +0200 Subject: [PATCH] fix: code smells --- cypress/e2e/homePage.cy.ts | 6 +++--- cypress/e2e/settings/exportData.cy.ts | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/homePage.cy.ts b/cypress/e2e/homePage.cy.ts index 7ac8637db..f31e52e68 100644 --- a/cypress/e2e/homePage.cy.ts +++ b/cypress/e2e/homePage.cy.ts @@ -32,7 +32,6 @@ class TestHelper { constructor(args: TestHelperInput) { this.currentMember = JSON.parse(JSON.stringify(args.currentMember)); - this.setupServer(); } setupServer() { @@ -75,9 +74,10 @@ class TestHelper { } describe('Upload Avatar', () => { + let helpers: TestHelper; beforeEach(() => { - // eslint-disable-next-line no-new - new TestHelper({ currentMember: BOB }); + helpers = new TestHelper({ currentMember: BOB }); + helpers.setupServer(); cy.visit('/'); }); diff --git a/cypress/e2e/settings/exportData.cy.ts b/cypress/e2e/settings/exportData.cy.ts index 2fa18aa90..9ea33c153 100644 --- a/cypress/e2e/settings/exportData.cy.ts +++ b/cypress/e2e/settings/exportData.cy.ts @@ -1,6 +1,5 @@ -import { SETTINGS_PATH } from '@/config/paths'; -import { EXPORT_DATA_BUTTON_ID } from '@/config/selectors'; - +import { SETTINGS_PATH } from '../../../src/config/paths'; +import { EXPORT_DATA_BUTTON_ID } from '../../../src/config/selectors'; import { CURRENT_MEMBER } from '../../fixtures/members'; describe('Check exporting data', () => {