Skip to content
Snippets Groups Projects
Unverified Commit e6b9dd6a authored by metabase-bot[bot]'s avatar metabase-bot[bot] Committed by GitHub
Browse files

fix database info banner link (#30330) (#30428)

parent 60b45386
No related branches found
No related tags found
No related merge requests found
import styled from "@emotion/styled";
import { color } from "metabase/lib/colors";
import Banner from "metabase/components/Banner";
export const InfoBanner = styled.div`
padding: 0.75rem;
border-radius: 6px;
color: ${color("text-medium")};
background-color: ${color("bg-light")};
export const InfoBanner = styled(Banner)`
margin-bottom: 0.5rem;
`;
import React from "react";
import { render, screen } from "@testing-library/react";
import DatabaseInfoField from "./DatabaseInfoField";
describe("DatabaseInfoField", () => {
it("renders markdown links", () => {
const content = 'Text "[link](https://www.metabase.com/)';
render(<DatabaseInfoField placeholder={content} />);
const link = screen.getByRole("link");
expect(link).toHaveTextContent("link");
expect(link).toHaveAttribute("href", "https://www.metabase.com/");
});
});
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