Skip to content

Commit

Permalink
feat: update button in playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lordelogos committed Jun 3, 2024
1 parent 01574cb commit 787d249
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
10 changes: 9 additions & 1 deletion apps/test/fixtures/base.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ export const Template = () => (
<Body>
<Container>
<Section>
<Button href="https://jsx.email">Button Content</Button>
<Button
width={200}
height={40}
backgroundColor="#FFFFFF"
textColor="#000000"
href="https://jsx.email"
>
Button Content
</Button>
<Font
fontFamily="Roboto"
fallbackFontFamily="Verdana"
Expand Down
5 changes: 4 additions & 1 deletion apps/test/fixtures/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ export const CodeEmail = () => (
<Head />
<Tailwind>
<Body className="bg-white my-auto mx-auto font-sans">
<Container className="border-separate border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] w-[465px]">
<Container
containerWidth={465}
className="border-separate border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px]"
>
<Code language="js">
{`
import { batman } from 'superheros';
Expand Down
6 changes: 5 additions & 1 deletion apps/test/fixtures/tailwind.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ export const Template = () => (
}}
>
<Button
width={200}
height={40}
textColor="#FFFFFF"
backgroundColor="#007291"
href="https://example.com"
className="px-3 py-2 font-medium leading-4 text-white bg-brand"
className="font-medium leading-4"
>
Click me
</Button>
Expand Down

0 comments on commit 787d249

Please sign in to comment.