diff --git a/frontend/__tests__/utils/check-hardcoded-strings.test.tsx b/frontend/__tests__/utils/check-hardcoded-strings.test.tsx index 74c288ad3929..b192fbd8fb72 100644 --- a/frontend/__tests__/utils/check-hardcoded-strings.test.tsx +++ b/frontend/__tests__/utils/check-hardcoded-strings.test.tsx @@ -12,25 +12,8 @@ vi.mock("react-i18next", () => ({ describe("Check for hardcoded English strings", () => { test("InteractiveChatBox should not have hardcoded English strings", () => { - const { container } = render( - {}} - onStop={() => {}} - /> - ); - - // Get all text content - const text = container.textContent; - - // List of English strings that should be translated - const hardcodedStrings = [ - "What do you want to build?", - ]; - - // Check each string - hardcodedStrings.forEach(str => { - expect(text).not.toContain(str); - }); + render( {}} onStop={() => {}} />); + expect(screen.queryByText("What do you want to build?")).not.toBeInTheDocument(); }); test("ChatInput should use translation key for placeholder", () => {