Skip to content

Commit

Permalink
Merge pull request #864 from tradingstrategy-ai/troubleshoot-build
Browse files Browse the repository at this point in the history
Troubleshoot build
  • Loading branch information
kenkunz authored Dec 16, 2024
2 parents 51ba4b4 + 6bcc6fb commit 7572f70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ jobs:
# skip build in test step
- name: Run Tests
run: npm run test --skip-build
- name: Upload Test Results
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-test-results
path: |
test-results/
tests/integration/**/*-snapshots/
retention-days: 7
compression-level: 0 # Skip compression since PNGs are already compressed

build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.describe('home page', () => {
// $ ./scripts/update-test-screenshots.sh
test('hero banner looks correct', async ({ page }) => {
const header = page.getByTestId('home-hero-banner');
await expect(header).toHaveScreenshot();
await expect(header).toHaveScreenshot({ maxDiffPixels: 150 });
});

test('home page has impressive numbers', async ({ page }) => {
Expand Down

0 comments on commit 7572f70

Please sign in to comment.