diff --git a/.github/workflows/storybook-test.yml b/.github/workflows/storybook-test.yml index 82d8258..08867c5 100644 --- a/.github/workflows/storybook-test.yml +++ b/.github/workflows/storybook-test.yml @@ -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 + + diff --git a/package.json b/package.json index 3a06480..1e097a0 100644 --- a/package.json +++ b/package.json @@ -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}": [ diff --git a/src/components/Button/Button.stories.tsx b/src/components/Button/Button.stories.tsx index e58bede..2c72734 100644 --- a/src/components/Button/Button.stories.tsx +++ b/src/components/Button/Button.stories.tsx @@ -20,7 +20,7 @@ const meta: Meta = { }, tags: ['autodocs'], args: { - children: 'Botão de Teste', + children: 'Botão', }, }; @@ -30,7 +30,7 @@ type Story = StoryObj; export const Normal: Story = { args: { - children: 'Botão de Teste', + children: 'Botão', size: 'normal', testID: btnNormalID, onPress: normalBtnFn,