Skip to content
Snippets Groups Projects
Unverified Commit 911dafbe authored by Jeff Bruemmer's avatar Jeff Bruemmer Committed by GitHub
Browse files

copy change in csv modal (#45185)

parent f434c6c9
No related branches found
No related tags found
No related merge requests found
......@@ -27,12 +27,12 @@ export const UploadInfoModal = ({
<ModalContent title=" " onClose={onClose}>
<InfoModalContainer>
<NewBadge>{t`New`}</NewBadge>
<InfoModalTitle>{t`Uploads CSVs to ${applicationName}`}</InfoModalTitle>
<InfoModalTitle>{t`Upload CSVs to ${applicationName}`}</InfoModalTitle>
{isAdmin ? (
<>
<InfoModalBody>
<p>
{t`Team members will be able to upload CSV files and work with them just like any other data source`}
{t`Team members will be able to upload CSV files and work with them just like any other data source.`}
</p>
<p>
{t`You'll be able to pick the default database where the data should be stored when enabling the feature.`}
......@@ -44,7 +44,7 @@ export const UploadInfoModal = ({
primary
role="link"
>
{t`Enable in settings`}
{t`Go to setup`}
</Button>
</>
) : (
......
......@@ -232,7 +232,7 @@ describe("CollectionHeader", () => {
await userEvent.click(screen.getByLabelText("Upload data"));
expect(await screen.findByRole("dialog")).toBeInTheDocument();
expect(screen.getByText("Uploads CSVs to Metabase")).toBeInTheDocument();
expect(screen.getByText("Upload CSVs to Metabase")).toBeInTheDocument();
});
it("should show an informational modal with a link to settings for admins", async () => {
......@@ -245,7 +245,7 @@ describe("CollectionHeader", () => {
await userEvent.click(screen.getByLabelText("Upload data"));
expect(await screen.findByRole("dialog")).toBeInTheDocument();
expect(screen.getByText("Enable in settings")).toBeInTheDocument();
expect(screen.getByText("Go to setup")).toBeInTheDocument();
expect(screen.getByRole("link")).toBeInTheDocument();
});
......
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