feat: Add E2E tests (#4)

This commit is contained in:
2021-04-11 23:27:13 +02:00
committed by GitHub
parent e590d40db7
commit 6c16252b3b
16 changed files with 2618 additions and 43 deletions

View File

@@ -16,6 +16,7 @@ const Thumb: React.FC = ({
title,
Icon,
link,
className,
}) => {
const history = useHistory();
return (
@@ -23,6 +24,7 @@ const Thumb: React.FC = ({
size="large"
icon={<Icon />}
type="link"
className={className}
onClick={() => history.push(link)}
>
{title}
@@ -39,15 +41,18 @@ const Intro = () => {
<Thumb
title="I want to send a text/file"
link="/send"
className="send-btn"
Icon={UploadOutlined}
/>
<Thumb
link="/key"
className="want-to-receive-btn"
title="I want to receive a file"
Icon={KeyOutlined}
/>
<Thumb
link="/receive"
className="did-receive-btn"
title="I have received a file"
Icon={DownloadOutlined}
/>