From 2464f151aaa2cb678562ab081f493e4ca0365607 Mon Sep 17 00:00:00 2001 From: shishirbychapur Date: Thu, 19 Sep 2024 14:15:23 +0800 Subject: [PATCH] fix: resolve fe test --- frontend/__tests__/page.test.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/__tests__/page.test.tsx b/frontend/__tests__/page.test.tsx index 60c932acc2..04d77283e6 100644 --- a/frontend/__tests__/page.test.tsx +++ b/frontend/__tests__/page.test.tsx @@ -1,12 +1,14 @@ import '@testing-library/jest-dom' + import { render, screen } from '@testing-library/react' + import Page from '../app/page' describe('Page', () => { - it('renders the main element', () => { + it('renders the logo', () => { render() - const page = screen.getByRole('main') + const page = screen.getByRole('img') expect(page).toBeInTheDocument() })