Skip to content

Commit f7212fe

Browse files
authored
chore: Change text in contact info new fields (#5454)
1 parent 8259781 commit f7212fe

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

static/js/publisher/pages/Listing/ContactInformation/ContactFields.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function ContactFields({
4242
append({ url: "" });
4343
}}
4444
>
45-
+ Add field
45+
+ Add link
4646
</Button>
4747
</Col>
4848
</Row>
@@ -90,7 +90,7 @@ function ContactFields({
9090
append({ url: "" });
9191
}}
9292
>
93-
+&nbsp;Add field
93+
+&nbsp;Add link
9494
</Button>
9595
</Col>
9696
</Row>

static/js/publisher/pages/Listing/ContactInformation/__tests__/ContactFields.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe("ContactFields", () => {
6363
const fieldElement = screen.getByDisplayValue(
6464
"https://example.com/contact",
6565
);
66-
const addFieldElement = screen.getByText(/Add field/);
66+
const addFieldElement = screen.getByText(/Add link/);
6767

6868
expect(fieldElement).toBeVisible();
6969
expect(addFieldElement).toBeVisible();
@@ -92,7 +92,7 @@ describe("ContactFields", () => {
9292
const user = userEvent.setup();
9393
renderComponent();
9494

95-
const addButton = screen.getByText(/Add field/);
95+
const addButton = screen.getByText(/Add link/);
9696
await user.click(addButton);
9797
await waitFor(() => {
9898
const links = screen.queryAllByRole("textbox");

0 commit comments

Comments
 (0)