Skip to content

Commit

Permalink
test: fixed test config & changed github action logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Florez authored and Sergio Florez committed Feb 4, 2025
1 parent dc7f83e commit 7f72190
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ jobs:
TEST_PASSWORD: ${{ secrets.TEST_PASSWORD }}
TEST_CONSULTANT: ${{ secrets.TEST_CONSULTANT }}
OTP_SECRET: ${{ secrets.OTP_SECRET }}
run: npx playwright test
run: npx playwright test --debug
- name: Debug ENV Variables
run: printenv | grep TEST_
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30


9 changes: 6 additions & 3 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,20 @@ export default defineConfig({
/* Retry on CI only */
retries: 3,
/* Opt out of parallel tests on CI. */
workers: 1,
workers: 3,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
timeout: 50 * 500,
// timeout: 50 * 500,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://127.0.0.1:3000',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry'
// trace: 'on-first-retry'
trace: 'on',
screenshot: 'only-on-failure',
video: 'on'
},

/* Configure projects for major browsers */
Expand Down

0 comments on commit 7f72190

Please sign in to comment.