Replace test-runner with vitest for storybook (#17187)
This commit is contained in:
@@ -24,4 +24,3 @@ export { RecoilRootDecorator } from './decorators/RecoilRootDecorator';
|
||||
export { RouterDecorator } from './decorators/RouterDecorator';
|
||||
export { AVATAR_URL_MOCK } from './mocks/avatarUrlMock';
|
||||
export type { CatalogStory } from './types/CatalogStory';
|
||||
export { getCanvasElementForDropdownTesting } from './utils/getCanvasElementForDropdownTesting';
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
export const getCanvasElementForDropdownTesting = () => {
|
||||
const canvasElement = document.getElementsByClassName(
|
||||
'sb-show-main',
|
||||
)[0] as HTMLElement | null;
|
||||
|
||||
if (!isDefined(canvasElement)) {
|
||||
throw new Error(
|
||||
`Canvas element not found for dropdown testing in storybook, verify that storybook still uses the class name "sb-show-main" for its body that displays stories.`,
|
||||
);
|
||||
}
|
||||
|
||||
return canvasElement;
|
||||
};
|
||||
Reference in New Issue
Block a user