diff --git a/cypress/e2e/faq.spec.cy.ts b/cypress/e2e/faq.spec.cy.ts index c880ba7d5..6695ec63f 100644 --- a/cypress/e2e/faq.spec.cy.ts +++ b/cypress/e2e/faq.spec.cy.ts @@ -8,7 +8,6 @@ describe('faq', () => { it('reveals text after clicking "SHOW"', () => { cy.findByTestId(ACCORDION_CONTENT).should('not.exist'); - // @ts-expect-error - This seems to be incorrect 🤷🏼‍♂️ cy.findAllByTestId(ACCORDION_TOGGLE_BUTTON).then(([firstButton]) => firstButton.click()); cy.findAllByTestId(ACCORDION_CONTENT).should('be.visible'); }); diff --git a/cypress/e2e/hashlink.spec.cy.ts b/cypress/e2e/hashlink.spec.cy.ts index a6177d4d8..84bc4ff98 100644 --- a/cypress/e2e/hashlink.spec.cy.ts +++ b/cypress/e2e/hashlink.spec.cy.ts @@ -6,8 +6,8 @@ describe('Hash Links', () => { cy.findAllByTestId(HERO_BANNER_H1).should('be.visible'); - // @ts-expect-error - This seems to be incorrect 🤷🏼‍♂️ cy.findAllByTestId('Hash Link').each(([link]) => { + // @ts-expect-error - This seems to be incorrect 🤷🏼‍♂️ const { hash } = link; cy.get(hash).scrollIntoView(); @@ -39,8 +39,8 @@ describe('Hash Links', () => { cy.visitAndWaitFor(path); cy.viewport('iphone-6'); - // @ts-expect-error - This seems to be incorrect 🤷🏼‍♂️ cy.findAllByTestId('Hash Link').each(([link]) => { + // @ts-expect-error - This seems to be incorrect 🤷🏼‍♂️ const { hash } = link; cy.get(hash).should('not.be.visible'); diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index c068866d0..1e6f996e6 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../tsconfig.json", "compilerOptions": { - "baseUrl": "./", + "baseUrl": "../", "types": ["cypress", "node", "@testing-library/cypress"], "target": "esnext", "lib": ["dom", "dom.iterable", "esnext"]