Skip to content

Commit

Permalink
Configured storybook stories
Browse files Browse the repository at this point in the history
  • Loading branch information
MRita443 committed Jul 24, 2023
1 parent 3358d47 commit 4afcd02
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src/lib/layout/hexagons/EventHexagon.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import { expect } from '@storybook/jest';
import EventHexagon from './EventHexagon.svelte';

export default {
title: 'Atoms/Hexagons/EventHexagon',
title: 'Atoms/Hexagons/Event Hexagon',
component: EventHexagon,
parameters: {
layout: 'centered',
controls: { exclude: ['event'] }
layout: 'centered'
}
};

export const EventPageHexagon = {
export const DateIntervalHexagon = {
args: {
title: { control: 'text' },
event: {
title: 'Jantar de Curso',
description: 'Muito fixe',
Expand All @@ -23,13 +23,18 @@ export const EventPageHexagon = {
thumbnailPath: 'images/previews/bruno-rosendo.png'
}
},
play: async ({ canvasElement, step }) => {
const canvas = within(canvasElement);
};

await step('Hover over hexagon', async () => {
await userEvent.hover(await canvas.findByTestId('event-hexagon'));
const role = canvas.queryByText('Co-Gestor de Projetos');
await expect(role).toBeTruthy();
});
export const SingleDateHexagon = {
args: {
event: {
title: 'Jantar de Curso',
description: 'Muito fixe',
teamMemberIds: [],
registerUrl: 'https://www.google.com/intl/pt-PT/forms/about/',
dateInterval: { startDate: new Date('2023-12-10') },
location: 'Cervejaria Diu',
thumbnailPath: 'images/previews/bruno-rosendo.png'
}
}
};

0 comments on commit 4afcd02

Please sign in to comment.