fix: crash in HeaderParser in dicer. (#15963)
Resolves [Dependabot Alert 74](https://github.com/twentyhq/twenty/security/dependabot/74). Upgraded `graphql-upload` from `13.0.0` to `16.0.2`. Type exports changed. API remains the same. Tested the following upload flows: - profile picture - workspace logo - rich text editor (image, video, file) - record profile picture - file associated to record. They all work as intended, nothing breaks.
This commit is contained in:
+19
-7
@@ -1,7 +1,7 @@
|
||||
import { AdvancedTextEditor } from '@/advanced-text-editor/components/AdvancedTextEditor';
|
||||
import { useAdvancedTextEditor } from '@/advanced-text-editor/hooks/useAdvancedTextEditor';
|
||||
import { type Meta, type StoryObj } from '@storybook/react';
|
||||
import { expect, fn, userEvent } from '@storybook/test';
|
||||
import { expect, fn, userEvent, waitFor } from '@storybook/test';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { ComponentDecorator, RouterDecorator } from 'twenty-ui/testing';
|
||||
import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator';
|
||||
@@ -395,8 +395,13 @@ export const WithLists: Story = {
|
||||
},
|
||||
play: async ({ canvasElement, step }) => {
|
||||
await step('Verify bullet list is rendered', async () => {
|
||||
await waitFor(() =>
|
||||
expect(canvasElement.querySelectorAll('ul li').length).toBeGreaterThan(
|
||||
0,
|
||||
),
|
||||
);
|
||||
|
||||
const listItems = canvasElement.querySelectorAll('ul li');
|
||||
expect(listItems.length).toBeGreaterThan(0);
|
||||
|
||||
const firstItem = listItems[0];
|
||||
expect(firstItem).toBeInTheDocument();
|
||||
@@ -404,8 +409,13 @@ export const WithLists: Story = {
|
||||
});
|
||||
|
||||
await step('Verify ordered list is rendered', async () => {
|
||||
await waitFor(() =>
|
||||
expect(canvasElement.querySelectorAll('ol li').length).toBeGreaterThan(
|
||||
0,
|
||||
),
|
||||
);
|
||||
|
||||
const orderedListItems = canvasElement.querySelectorAll('ol li');
|
||||
expect(orderedListItems.length).toBeGreaterThan(0);
|
||||
|
||||
const firstOrderedItem = orderedListItems[0];
|
||||
expect(firstOrderedItem).toBeInTheDocument();
|
||||
@@ -433,11 +443,13 @@ export const WithLists: Story = {
|
||||
const orderedList = canvasElement.querySelector('ol');
|
||||
expect(orderedList).toBeInTheDocument();
|
||||
|
||||
const bulletListItems = canvasElement.querySelectorAll('ul li');
|
||||
expect(bulletListItems.length).toBe(3);
|
||||
await waitFor(() =>
|
||||
expect(canvasElement.querySelectorAll('ul li').length).toBe(3),
|
||||
);
|
||||
|
||||
const orderedListItems = canvasElement.querySelectorAll('ol li');
|
||||
expect(orderedListItems.length).toBe(4);
|
||||
await waitFor(() =>
|
||||
expect(canvasElement.querySelectorAll('ol li').length).toBe(4),
|
||||
);
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user