@ -87,30 +87,12 @@ export const Default: Story = {
|
||||
play: async ({ canvasElement }) => {
|
||||
const canvas = within(canvasElement);
|
||||
|
||||
await canvas.findAllByText(
|
||||
peopleMock[0].name.firstName + ' ' + peopleMock[0].name.lastName,
|
||||
);
|
||||
expect(
|
||||
await canvas.findByText('Add your first Activity', undefined, {
|
||||
timeout: 3000,
|
||||
}),
|
||||
).toBeInTheDocument();
|
||||
},
|
||||
};
|
||||
|
||||
export const Loading: Story = {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
decorators: [PageDecorator],
|
||||
play: async ({ canvasElement }) => {
|
||||
const canvas = within(canvasElement);
|
||||
|
||||
expect(
|
||||
canvas.queryByText(
|
||||
peopleMock[0].name.firstName + ' ' + peopleMock[0].name.lastName,
|
||||
),
|
||||
).toBeNull();
|
||||
|
||||
// await canvas.findAllByText(peopleMock[0].name.firstName);
|
||||
expect(
|
||||
await canvas.findByText('Twenty', undefined, {
|
||||
timeout: 3000,
|
||||
}),
|
||||
).toBeInTheDocument();
|
||||
expect(
|
||||
await canvas.findByText('Add your first Activity', undefined, {
|
||||
timeout: 3000,
|
||||
|
||||
@ -60,7 +60,7 @@ export const SettingsObjects = () => {
|
||||
/>
|
||||
</UndecoratedLink>
|
||||
</SettingsHeaderContainer>
|
||||
<div>
|
||||
<>
|
||||
<SettingsObjectCoverImage />
|
||||
<Section>
|
||||
<H2Title title="Existing objects" />
|
||||
@ -122,7 +122,7 @@ export const SettingsObjects = () => {
|
||||
)}
|
||||
</Table>
|
||||
</Section>
|
||||
</div>
|
||||
</>
|
||||
</SettingsPageContainer>
|
||||
</SubMenuTopBarContainer>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user