Skip to content

Commit

Permalink
feat: chromatic config
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelxsilva committed Feb 7, 2024
1 parent 432eed3 commit 19956bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/storybook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ jobs:
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on http-get://127.0.0.1:6006 && yarn storybook:test"
user-flow:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn
- name: Run Test
run: yarn storybook:test
- name: Chromatic Build
run: yarn storybook:chromatic


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"storybook:dev": "storybook dev -p 6006",
"storybook:build": "storybook build",
"storybook:test": "test-storybook",
"chromatic": "npx chromatic --project-token=chpt_ca9ead39821522d"
"storybook:chromatic": "npx chromatic --ci --project-token=chpt_ca9ead39821522d --build-script-name storybook:build --auto-accept-changes --force-rebuild"
},
"lint-staged": {
"*.{ts,tsx}": [
Expand Down
4 changes: 2 additions & 2 deletions src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const meta: Meta<typeof Button> = {
},
tags: ['autodocs'],
args: {
children: 'Botão de Teste',
children: 'Botão',
},
};

Expand All @@ -30,7 +30,7 @@ type Story = StoryObj<typeof Button>;

export const Normal: Story = {
args: {
children: 'Botão de Teste',
children: 'Botão',
size: 'normal',
testID: btnNormalID,
onPress: normalBtnFn,
Expand Down

0 comments on commit 19956bf

Please sign in to comment.