From a7f003cc4bb2c7fb0aac5c3b1965eb8aaff09755 Mon Sep 17 00:00:00 2001 From: Steve Rydz Date: Tue, 11 Nov 2025 14:21:50 +0000 Subject: [PATCH] chore: Change text in contact info new fields --- .../pages/Listing/ContactInformation/ContactFields.tsx | 4 ++-- .../ContactInformation/__tests__/ContactFields.test.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/publisher/pages/Listing/ContactInformation/ContactFields.tsx b/static/js/publisher/pages/Listing/ContactInformation/ContactFields.tsx index 88b8a695e7..fada9bd9f9 100644 --- a/static/js/publisher/pages/Listing/ContactInformation/ContactFields.tsx +++ b/static/js/publisher/pages/Listing/ContactInformation/ContactFields.tsx @@ -42,7 +42,7 @@ function ContactFields({ append({ url: "" }); }} > - + Add field + + Add link @@ -90,7 +90,7 @@ function ContactFields({ append({ url: "" }); }} > - + Add field + + Add link diff --git a/static/js/publisher/pages/Listing/ContactInformation/__tests__/ContactFields.test.tsx b/static/js/publisher/pages/Listing/ContactInformation/__tests__/ContactFields.test.tsx index 2c8c86160e..44899f5ee6 100644 --- a/static/js/publisher/pages/Listing/ContactInformation/__tests__/ContactFields.test.tsx +++ b/static/js/publisher/pages/Listing/ContactInformation/__tests__/ContactFields.test.tsx @@ -63,7 +63,7 @@ describe("ContactFields", () => { const fieldElement = screen.getByDisplayValue( "https://example.com/contact", ); - const addFieldElement = screen.getByText(/Add field/); + const addFieldElement = screen.getByText(/Add link/); expect(fieldElement).toBeVisible(); expect(addFieldElement).toBeVisible(); @@ -92,7 +92,7 @@ describe("ContactFields", () => { const user = userEvent.setup(); renderComponent(); - const addButton = screen.getByText(/Add field/); + const addButton = screen.getByText(/Add link/); await user.click(addButton); await waitFor(() => { const links = screen.queryAllByRole("textbox");