Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function ContactFields({
append({ url: "" });
}}
>
+ Add field
+ Add link
</Button>
</Col>
</Row>
Expand Down Expand Up @@ -90,7 +90,7 @@ function ContactFields({
append({ url: "" });
}}
>
+&nbsp;Add field
+&nbsp;Add link
</Button>
</Col>
</Row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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");
Expand Down
Loading