garris / garris/BackstopJS

Puppeteer path argument error

Open
#1,198 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Hello,
we run backstop fine locally over a lando machine, while when running it on an agent i get a strange error:

`Puppeteer encountered an error while running scenario "Homepage"
[09:01:39]
[Step 3/5] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be one of type string, Buffer, or URL. Received type undefined`

the scenario is set this way:
`scenarios = [
{
"label": "Homepage",
"url": environments[args.env] + "/",
"hideSelectors": default_hide_selectors,
delay: default_delay,
cookiePath: cookiePath,
baseUrl: environments[args.env] + "/",
}
];`
so no path is defined there, right... but then why is it working locally?

i can't make this happen locally... any ideas? :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.