From 6aa732e288ed711fcfcf6984ea08127277362e3a Mon Sep 17 00:00:00 2001 From: Ivo Branco Date: Wed, 11 Dec 2024 23:21:34 +0000 Subject: [PATCH] fix: tests --- src/components/Footer.test.jsx | 29 +++++--- src/components/LanguageSelector.jsx | 67 ++++++++--------- .../__snapshots__/Footer.test.jsx.snap | 71 ++++++++++--------- 3 files changed, 89 insertions(+), 78 deletions(-) diff --git a/src/components/Footer.test.jsx b/src/components/Footer.test.jsx index 55f399f3a..12c416889 100644 --- a/src/components/Footer.test.jsx +++ b/src/components/Footer.test.jsx @@ -1,10 +1,13 @@ /* eslint-disable react/prop-types */ import React, { useMemo } from 'react'; import renderer from 'react-test-renderer'; -import { render, fireEvent, screen } from '@testing-library/react'; +import { + render, waitFor, +} from '@testing-library/react'; import { initializeMockApp } from '@edx/frontend-platform'; import { IntlProvider } from '@edx/frontend-platform/i18n'; import { AppContext } from '@edx/frontend-platform/react'; +import '@testing-library/jest-dom'; import Footer from './Footer'; @@ -89,17 +92,21 @@ describe('