Skip to content

[BUG] playwright tests are getting passed locally but failing in Github actions #20664

Description

@saikrishnaoggu

Context:

  • Playwright Version: [1.25.0]
  • Operating System: [Windows]
  • Node.js version: [16.7.1]
  • Browser: [e.g. All, Chromium, Firefox, WebKit]
  • Extra: [any specific details about your environment]

Code Snippet
---> Below is the workflow I have been using.

`name: Playwright Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Install dependencies
   run: npm install -g yarn && yarn install && rm -rf node_modules && yarn install --frozen-lockfile 

- name: Install Playwright Browsers
  run: yarn playwright install --with-deps

- name: Run Playwright tests
  run: npx playwright test --max-failures=10

- uses: actions/upload-artifact@v3
  if: always()
  with:
    name: playwright-report
    path: playwright-report/
    retention-days: 3`

Describe the bug

My playwright tests are getting passed locally but when it is executed through Github Actions it is failing. It is showing Time out error for both web based tests and API tests.

image
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions