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
34 changes: 34 additions & 0 deletions .github/workflows/test-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,40 @@ jobs:
working-directory: ./vuu-ui
browser: edge

playwright-component:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node & dependencies
uses: ./.github/actions/setup-vuu-ui
- name: Install Playwright Browsers
run: cd ./vuu-ui && npx playwright install --with-deps chromium firefox webkit
- name: Run Playwright component tests
run: cd ./vuu-ui && npm run test:playwright:ct
- name: Upload Playwright Report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: vuu-ui/playwright-report/
retention-days: 10
- name: Add Playwright Results to Summary
if: always()
run: |
echo "## 🎭 Playwright Component Tests" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ -f "vuu-ui/playwright-report/index.html" ]; then
echo "βœ… **Tests completed successfully**" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "πŸ“Š **Report available**: Download the 'playwright-report' artifact to view detailed results" >> $GITHUB_STEP_SUMMARY
else
echo "❌ **Tests failed or report not generated**" >> $GITHUB_STEP_SUMMARY
fi
echo "" >> $GITHUB_STEP_SUMMARY
echo "πŸ” **Test Location**: \`packages/vuu-ui-controls/src/__tests__/__component__/\`" >> $GITHUB_STEP_SUMMARY
echo "πŸ“ **Test Pattern**: \`*.playwright.test.tsx\`" >> $GITHUB_STEP_SUMMARY

# ensure the vuu example still builds
vuu-app-build:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions vuu-ui/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
Loading
Loading