chore: rename organization 'name' to organization 'slug' (#14835)

This commit is contained in:
Steven Masley
2024-09-26 12:17:49 -05:00
committed by GitHub
parent fb28979537
commit b23e6a05c8
3 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ export const CreateOrganizationPageView: FC<
onChange={onChangeTrimmed(form)} onChange={onChangeTrimmed(form)}
autoFocus autoFocus
fullWidth fullWidth
label="Name" label="Slug"
/> />
<TextField <TextField
{...getFieldHelpers("display_name")} {...getFieldHelpers("display_name")}

View File

@ -60,7 +60,7 @@ describe("OrganizationSettingsPage", () => {
); );
await renderPage(); await renderPage();
const form = screen.getByTestId("org-settings-form"); const form = screen.getByTestId("org-settings-form");
expect(within(form).getByRole("textbox", { name: "Name" })).toHaveValue( expect(within(form).getByRole("textbox", { name: "Slug" })).toHaveValue(
MockDefaultOrganization.name, MockDefaultOrganization.name,
); );
}); });
@ -82,7 +82,7 @@ describe("OrganizationSettingsPage", () => {
); );
await renderPage(); await renderPage();
const form = screen.getByTestId("org-settings-form"); const form = screen.getByTestId("org-settings-form");
expect(within(form).getByRole("textbox", { name: "Name" })).toHaveValue( expect(within(form).getByRole("textbox", { name: "Slug" })).toHaveValue(
MockOrganization2.name, MockOrganization2.name,
); );
}); });

View File

@ -92,7 +92,7 @@ export const OrganizationSettingsPageView: FC<
onChange={onChangeTrimmed(form)} onChange={onChangeTrimmed(form)}
autoFocus autoFocus
fullWidth fullWidth
label="Name" label="Slug"
/> />
<TextField <TextField
{...getFieldHelpers("display_name")} {...getFieldHelpers("display_name")}