interface: prevent storybook flake

This commit is contained in:
Liam Fitzgerald 2021-05-27 15:28:59 +10:00
parent dbf8b05e41
commit 57a7822b65
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB
2 changed files with 7 additions and 4 deletions

View File

@ -9,6 +9,8 @@ export default {
component: Author
} as Meta;
const date = 1622093233566;
const Template: Story<AuthorProps> = args => (
<Box backgroundColor="white" p="2" width="fit-content">
<Author {...args} />
@ -22,7 +24,7 @@ WithNicknameTime.args = {
showImage: true,
size: 24,
sigilPadding: 6,
date: Date.now()
date
};
export const WithNickname = Template.bind({});
@ -42,7 +44,7 @@ NoContactTime.args = {
showImage: true,
size: 24,
sigilPadding: 6,
date: Date.now()
date
};
export const NoContact = Template.bind({});
@ -63,5 +65,5 @@ RelativeTime.args = {
size: 24,
sigilPadding: 6,
isRelativeTime: true,
date: Date.now() - 3600000
date: date - 3600000
};

View File

@ -35,5 +35,6 @@ export const Twitter = Template.bind({});
Twitter.args = {
url: 'https://twitter.com/urbit/status/1396947489656213504',
unfold: true
// massive test flake
unfold: false
};