Skip to content
Snippets Groups Projects
Unverified Commit 3c59a5c9 authored by Maz Ameli's avatar Maz Ameli Committed by GitHub
Browse files

change Author to Created By in model details (#32162)

parent 7fecea66
No related branches found
No related tags found
No related merge requests found
......@@ -48,8 +48,8 @@ function ModelInfoSidePanel({ model, mainTable, onChangeDescription }: Props) {
)}
{modelCard.creator && (
<ModelInfoSection>
<ModelInfoTitle>{t`Contact`}</ModelInfoTitle>
<ModelInfoText aria-label={t`Contact`}>
<ModelInfoTitle>{t`Created by`}</ModelInfoTitle>
<ModelInfoText aria-label={t`Created by`}>
{modelCard.creator.common_name}
</ModelInfoText>
</ModelInfoSection>
......
......@@ -297,11 +297,11 @@ describe("ModelDetailPage", () => {
expect(screen.getByLabelText("Description")).toHaveTextContent("Foo Bar");
});
it("displays model contact", async () => {
it("displays model creator", async () => {
const creator = createMockUser();
await setup({ model: getModel({ creator }) });
expect(screen.getByLabelText("Contact")).toHaveTextContent(
expect(screen.getByLabelText("Created by")).toHaveTextContent(
creator.common_name,
);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment