Skip to content

[Bug]: Playwright tests running locally but failing on BuildKite #36348

Open
@DeeptiMyOB

Description

@DeeptiMyOB

Version

1.52.0

Steps to reproduce

Context:

Playwright Version: [1.52.0]
Operating System: [Linux]
Browser: [e.g. All, Chromium, Firefox]
Extra: [any specific details about your environment]

Code Snippet

Below is the docker code I am running on my agent to start PlayWright tests.
test:
image: mcr.microsoft.com/playwright:v1.52.0
volumes:
- .:/app
- ./playwright-report:/app/playwright-report
working_dir: /app
environment:
- TEST_PATH
command: ./run_playwright.sh

Scipt:
#!/bin/bash
set -e
npm ci
npx playwright test $TEST_PATH --output=playwright-report || true

Expected behavior

Tests are passing locally., should work in BuildKite also.

Actual behavior

I am getting timeout errors for all tests in BuildKite.
I have tried increasing timeout but doesn't work. Please advise.
`

51) [webkit] › web/Tests/shakeoutTests/salesforceshakeout.spec.js:44:8 › Shakeout Test Scenarios › Create new lead --   |     | Test timeout of 60000ms exceeded while running "beforeEach" hook.   |     | 6 \| let dashboard;   | 7 \|   | > 8 \| test.beforeEach(async ({ page }) => {   | \| ^   | 9 \| dashboard = new DashboardPage(page);   | 10 \| });   | 11 \|   | at /app/web/Tests/shakeoutTests/salesforceshakeout.spec.js:8:6   |     | Error: page.waitForURL: Test timeout of 60000ms exceeded.   | =========================== logs ===========================   | waiting for navigation to "**/lightning/**" until "load"   | ============================================================   |     | at ../pageobjects/loginPage.js:24 `

Image

Additional context

No response

Environment

Stuck in agent with 
Need to install the following packages:
[email protected]
Ok to proceed? (y)

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