-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Heartbeat] Add 'playwright_options' browser option #31737
Conversation
Fixes elastic#28197 Adds the new `playwright_options` browser option. Test with the following config manually: ```yaml - type: browser enabled: true id: browser-inline name: browser-inline ignoreHTTPSErrors: true throttling: download: 1.6 upload: 0.75 latency: 150 source: inline: script: step("load homepage", async () => { await page.goto('https://www.elastic.co'); }); step("hover over products menu", async () => { await page.hover('css=[data-nav-item=products]'); }); step("failme", async () => { await page.hhover('css=[data-nav-item=products]'); }); schedule: "@every 1m" ```
Pinging @elastic/uptime (Team:Uptime) |
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, tested E2E
@@ -32,6 +32,7 @@ type Config struct { | |||
Throttling interface{} `config:"throttling"` | |||
Screenshots string `config:"screenshots"` | |||
SyntheticsArgs []string `config:"synthetics_args"` | |||
PlaywrightOpts map[string]interface{} `config:"playwright_options"` |
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.
nit: mapstr.M
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.
TBH, I kinda prefer ignoring our weird types unless we actual have a need for them. It doesn't make a difference here since we never traverse it, just serialize it, so I like to keep it plain.
PostFF LGTM, Related to E2E testing this, it has surfaced elastic/synthetics#516. |
Fixes #28197 Adds the new `playwright_options` browser option. Test with the following config manually: ```yaml - type: browser enabled: true id: browser-inline name: browser-inline ignoreHTTPSErrors: true throttling: download: 1.6 upload: 0.75 latency: 150 source: inline: script: step("load homepage", async () => { await page.goto('https://www.elastic.co'); }); step("hover over products menu", async () => { await page.hover('css=[data-nav-item=products]'); }); step("failme", async () => { await page.hhover('css=[data-nav-item=products]'); }); schedule: "@every 1m" ```
Fixes #28197
Adds the new
playwright_options
browser option.Tested with the following config manually:
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.