Fixed CI : 
- Unit test for useTimelineActivities
- Story for field creation with new 2-step process
This commit is contained in:
Lucas Bordeau
2024-09-11 12:15:12 +02:00
committed by GitHub
parent 1317e1c4f2
commit b506332420
3 changed files with 37 additions and 7 deletions

View File

@ -31,7 +31,17 @@ export const Default: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
await canvas.findByText('Objects');
await canvas.findByText('Name and description');
await canvas.findByText('1. Select a field type');
const searchInput = await canvas.findByPlaceholderText('Search a type');
await userEvent.type(searchInput, 'Num');
const numberTypeButton = await canvas.findByText('Number');
await userEvent.click(numberTypeButton);
await canvas.findByText('2. Configure field');
const employeeInput = await canvas.findByPlaceholderText('Employees');
await userEvent.type(employeeInput, 'Test');
@ -41,7 +51,6 @@ export const Default: Story = {
);
await userEvent.type(descriptionInput, 'Test description');
await canvas.findByText('Type and values');
const saveButton = await canvas.findByText('Save');