Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
25 changes: 9 additions & 16 deletions .github/workflows/sdk-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./test-site
# Dependabot pull requests do not receive repository secrets. The
# flag keeps the test suite running locally when the token is absent.
run: node ../bin/vizzly.js run "pnpm test" --allow-no-token
run: node ../bin/vizzly.js run "pnpm test"
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_TOKEN }}
Expand Down Expand Up @@ -125,7 +123,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/vitest
run: ../../bin/vizzly.js run "pnpm run test:e2e" --allow-no-token
run: ../../bin/vizzly.js run "pnpm run test:e2e"
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_VITEST_CLIENT_TOKEN }}
Expand All @@ -137,8 +135,6 @@ jobs:
name: Storybook SDK
runs-on: ubuntu-latest
timeout-minutes: 8
env:
VIZZLY_TOKEN: ${{ secrets.VIZZLY_STORYBOOK_CLIENT_TOKEN }}

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand Down Expand Up @@ -198,7 +194,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/storybook
run: ../../bin/vizzly.js run "pnpm run test:e2e" --allow-no-token
run: ../../bin/vizzly.js run "pnpm run test:e2e"
env:
CI: true
VIZZLY_LOG_LEVEL: debug
Expand All @@ -207,7 +203,7 @@ jobs:
VIZZLY_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.event.head_commit.id }}

- name: Upload preview
if: ${{ success() && env.VIZZLY_TOKEN != '' }}
if: success()
working-directory: ./clients/storybook
run: ../../bin/vizzly.js preview example-storybook/dist
env:
Expand All @@ -218,8 +214,6 @@ jobs:
name: Static-Site SDK
runs-on: ubuntu-latest
timeout-minutes: 8
env:
VIZZLY_TOKEN: ${{ secrets.VIZZLY_STATIC_SITE_CLIENT_TOKEN }}

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand Down Expand Up @@ -274,15 +268,14 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/static-site
run: ../../bin/vizzly.js run "pnpm run test:e2e" --allow-no-token
run: ../../bin/vizzly.js run "pnpm run test:e2e"
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_STATIC_SITE_CLIENT_TOKEN }}
VIZZLY_COMMIT_MESSAGE: ${{ github.event.pull_request.head.commit.message || github.event.head_commit.message }}
VIZZLY_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.event.head_commit.id }}

- name: Upload preview
if: ${{ success() && env.VIZZLY_TOKEN != '' }}
working-directory: ./clients/static-site
run: ../../bin/vizzly.js preview ../../test-site
env:
Expand Down Expand Up @@ -332,7 +325,7 @@ jobs:
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ steps.playwright-version.outputs.version }}-ember-chromium-v5
key: playwright-${{ steps.playwright-version.outputs.version }}-ember-chromium-headless-shell-v6

- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
Expand All @@ -351,7 +344,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/ember/test-app
run: ../../../bin/vizzly.js run "pnpm exec testem ci --file testem.cjs" --allow-no-token
run: ../../../bin/vizzly.js run "pnpm exec testem ci --file testem.cjs"
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_EMBER_CLIENT_TOKEN }}
Expand Down Expand Up @@ -408,7 +401,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/ruby
run: ../../bin/vizzly.js run "VIZZLY_E2E=1 ruby -Ilib:test test/e2e_test.rb" --allow-no-token
run: ../../bin/vizzly.js run "VIZZLY_E2E=1 ruby -Ilib:test test/e2e_test.rb"
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_RUBY_CLIENT_TOKEN }}
Expand Down Expand Up @@ -453,7 +446,7 @@ jobs:

- name: Run E2E tests (Cloud mode)
working-directory: ./clients/swift
run: ../../bin/vizzly.js run "VIZZLY_E2E=1 swift test --filter VizzlyE2ETests" --allow-no-token
run: ../../bin/vizzly.js run "VIZZLY_E2E=1 swift test --filter VizzlyE2ETests"
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_SWIFT_CLIENT_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: pnpm run build

- name: Run TUI visual tests
run: node bin/vizzly.js run "pnpm run test:tui" --allow-no-token
run: node bin/vizzly.js run "pnpm run test:tui"
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_TUI_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion clients/ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@vizzly-testing/cli": ">=0.12.0"
},
"dependencies": {
"playwright-core": "^1.61.0"
"playwright-core": "^1.62.0"
},
"devDependencies": {
"@biomejs/biome": "^2.3.8"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
},
"dependencies": {
"@vizzly-testing/bear-den": "0.1.4",
"@vizzly-testing/honeydiff": "^0.11.1",
"@vizzly-testing/honeydiff": "^0.12.0",
"ansis": "^4.2.0",
"commander": "^15.0.0",
"cosmiconfig": "^9.0.0",
Expand Down
Loading