-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add browser and context options support #317
feat: add browser and context options support #317
Conversation
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪Test errorsExpand to view the tests failures
|
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This generally looks good, but I think there may be a bug present. I tried to modify the todos
example (pushed to your branch, hope that's not a problem), and don't see the added options in effect.
One other note, you must invoke elastic-synthetics
from inside the todos
folder, not via elastic-synthetics examples/todos
for the synthetics.config.ts
to be applied (I'll open a separate issue for that).
// Just expanded for illustration | ||
userAgent: | ||
'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1', | ||
viewport: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see these options reflected with --no-headless
, are we sure they're applied correctly? Could be an error on my part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does work properly for me, can you pass me the command used to invoke these?
This is intended, we traverse up the root and not down the root path. This is keeping in mind how heartbeat invokes the underlying suites test and matches the behaviour of finding package.json files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ignoreHTTPSError
option on journeys and CLI #171BrowserLaunch
options andContextOptions
throughplaywrightOptions
using thesynthetics.config.ts
file.--headless
and--sandbox
takes precedence over the playwrightOptions when launch in non headless mode and such.recordVideo
andscreenshot
capture as synthetics provides them out of the box.Usage
synthetics.config.ts