Skip to content
Snippets Groups Projects
Unverified Commit ad563658 authored by Aleksandr Lesnenko's avatar Aleksandr Lesnenko Committed by GitHub
Browse files

update slack integration copy (#23433)

parent d4bb57de
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ const SlackAppsLink = ({ manifest }: SlackAppsLinkProps): JSX.Element => {
className="Button Button--primary"
href={`https://api.slack.com${link}`}
>
<LinkText>{t`Open Slack Apps`}</LinkText>
<LinkText>{t`Create Slack App`}</LinkText>
<LinkIcon name="external" />
</LinkRoot>
);
......
......@@ -6,6 +6,6 @@ describe("SlackAppsLink", () => {
it("renders correctly", () => {
render(<SlackAppsLink />);
expect(screen.getByText("Open Slack Apps")).toBeInTheDocument();
expect(screen.getByText("Create Slack App")).toBeInTheDocument();
});
});
......@@ -93,11 +93,14 @@ interface CreateAppSectionProps {
const CreateAppSection = ({ manifest }: CreateAppSectionProps): JSX.Element => {
return (
<SetupSection title={t`1. Create your Slack App`}>
<SetupSection
title={t`1. Click the button below and create your Slack App`}
>
<SectionMessage>
{t`Click the button below to begin creating your Slack App using the Metabase configuration.`}{" "}
{jt`Once created, click “${(
<strong key="install">{t`Install to workspace`}</strong>
{jt`First, ${(
<strong key="click-button">{t`click the button below to create your Slack App`}</strong>
)} using the Metabase configuration. Once created, click “${(
<strong key="install-app">{t`Install to workspace`}</strong>
)}” to authorize it.`}
</SectionMessage>
<SlackAppsLink manifest={manifest} />
......
......@@ -10,10 +10,14 @@ describe("SlackSetup", () => {
render(<SlackSetup Form={FormMock} />);
expect(screen.getByText("Install to workspace")).toBeInTheDocument();
userEvent.click(screen.getByText("1. Create your Slack App"));
userEvent.click(
screen.getByText("1. Click the button below and create your Slack App"),
);
expect(screen.queryByText("Install to workspace")).not.toBeInTheDocument();
userEvent.click(screen.getByText("1. Create your Slack App"));
userEvent.click(
screen.getByText("1. Click the button below and create your Slack App"),
);
expect(screen.getByText("Install to workspace")).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