Skip to content

"Navigation took more than 30000ms. Please increase the navigationTimeout" - working locally but issue in GitLab pipeline #2700

Description

@tester-mind

Describe the bug
"Navigation took more than 30000ms. Please increase the navigationTimeout" - working locally but issue in GitLab pipeline

To Reproduce
Steps (or script) to reproduce the behavior:

  1. Open the browser (chrome) in headless mode
await openBrowser({
        headless: headless,
        args: ["--no-sandbox"]
    });
    console.log('Browser opened.');
    gauge.message('Browser opened.');
  1. Goto url

await goto(url);

tried all the below solutions, but none is working -

  • goto(url, {waitForEvents:['firstMeaningfulPaint']});
  • goto(url,{timeout:90000});
  • goto(url,{timeout:120000});
  • goto(url,{waitForEvents:['loadEventFired']});
  • goto(url,{navigationTimeout:90000});
  • goto(url,{navigationTimeout:120000});
  • goto(url,{ waitForStart: 0 });
  1. Script is working locally but issue in GitLab pipeline

  2. See error
    "Navigation took more than 30000ms. Please increase the navigationTimeout"

Logs

Paste any log or error messages here

Error Message: Error: Navigation took more than 30000ms. Please increase the navigationTimeout.
    Stacktrace: 
    Error: Navigation took more than 30000ms. Please increase the navigationTimeout.
        at doActionAwaitingNavigation (node_modules/taiko/lib/doActionAwaitingNavigation.js:66:13)
        at async module.exports.goto (node_modules/taiko/lib/taiko.js:744:3)
        at async module.exports.<computed> (node_modules/taiko/lib/taiko.js:2620:14)
        at async Object.<anonymous> (tests/step_implementation.js:36:5)

![image](https://user-images.githubusercontent.com/130654429/231729767-f5ccc606-89e1-4b4a-a81d-12d7335d8551.png)


Expected behavior
The script should run in the CI/CD pipeline as it is running locally

Screenshots
If applicable, add screenshots to help explain your problem.

Versions:

  • Taiko: Version: 1.3.9 (Chromium: 110.0.5478.0) RELEASE
  • OS: MacOS Version 13.3.1 (22E261)
  • Node.js: v16.14.0
Gauge version: 1.4.3
Plugins
-------
html-report (4.2.0)
js (2.4.0)
python (0.3.17)
screenshot (0.1.0)

Additional context
.gitlab-ci.yml file
image

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