The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { errorHandler } from '@/__stories__/shared/test-utils/createFrontComponentStoryMeta';
import { INTERACTION_TIMEOUT } from '@/__stories__/shared/test-utils/timeouts';
import { type TwentyUiGalleryPlayFunction } from '@/__stories__/twenty-ui-gallery/types/TwentyUiGalleryPlayFunction';
import { expectSliderGalleryMounted } from '@/__stories__/twenty-ui-gallery/utils/expectSliderGalleryMounted';
import { expect, waitFor } from 'storybook/test';
export const sliderTest: TwentyUiGalleryPlayFunction = async ({
canvasElement,
}) => {
const slider = await expectSliderGalleryMounted(canvasElement);
await waitFor(() => expect(slider).toBeVisible(), {
timeout: INTERACTION_TIMEOUT,
});
expect(errorHandler).not.toHaveBeenCalled();
};