Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,12 @@ jobs:
node-version: 22
- run: corepack enable
- run: yarn install
- run: yarn run storybook:build
- name: Install Playwright
run: npx playwright install --with-deps chromium
- name: Build Storybook
run: yarn run storybook:build
- name: Serve Storybook and run tests
run: |
npx http-server storybook-static --port 6006 --silent &
npx wait-on tcp:6006
yarn run test:storybook
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
"build:es": "rollup --config --bundleConfigAsCjs",
"build:ts": "tsc --declaration --declarationDir types --emitDeclarationOnly",
"build": "yarn run build:clean && yarn run build:es && yarn run build:ts",
"validate": "yarn run lint && yarn run typecheck && yarn run test",
"validate": "yarn run lint && yarn run typecheck && yarn run test && yarn run test:storybook",
"test": "jest",
"test:watch": "jest --watch",
"test:storybook": "test-storybook",
"storybook": "storybook dev --port=6006",
"storybook:build": "storybook build --quiet",
"typecheck": "tsc --noEmit",
Expand Down Expand Up @@ -83,6 +84,7 @@
"@storybook/addon-docs": "^10.0.5",
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
"@storybook/react-webpack5": "^10.0.5",
"@storybook/test-runner": "^0.24.1",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.6.4",
"@testing-library/react": "^14.1.2",
Expand Down Expand Up @@ -111,6 +113,7 @@
"jest-environment-jsdom": "^30.2.0",
"less": "^4.2.0",
"less-loader": "^11.1.3",
"playwright": "^1.56.1",
"prettier": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -130,6 +133,7 @@
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"typescript": "^5.3.2",
"wait-on": "^9.0.3",
"webpack": "^5.97.0"
},
"packageManager": "yarn@4.10.3"
Expand Down
3 changes: 2 additions & 1 deletion src/Button/ColoredButtons.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Button as AntdButton, ButtonProps as AntdButtonProps } from 'antd';
import AntdButton from 'antd/es/button';
import type { ButtonProps as AntdButtonProps } from 'antd/es/button';
import ButtonGroup from 'antd/es/button/button-group';
import * as React from 'react';
import styled from 'styled-components';
Expand Down
4 changes: 4 additions & 0 deletions src/Tooltip/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export const TooltipForDate: StoryFn<DateWithTooltipProps> =
return <DateWithTooltip {...args} />;
};

TooltipForDate.args = {
date: new Date('2024-01-15T10:30:00'),
};

export const TooltipForTrimmedText: StoryFn<TextWithTooltipIfTrimmedProps> =
function TooltipForTrimmedText(args) {
return <TextWithTooltipIfTrimmed {...args} />;
Expand Down
Loading