-
Notifications
You must be signed in to change notification settings - Fork 42
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: enable trace as part of rich-events #387
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
}, | ||
root_fields: expect.any(Object), | ||
}); | ||
expect(screenshotRef).toBeDefined(); |
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.
Why was this removed?
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.
We already test them in the json reporter, checking for existence is good enough for the CLI layer.
.buffer() | ||
.map(data => JSON.parse(data)) | ||
.find(({ type }) => type === 'step/metrics'); | ||
expect(traceData).toBeDefined(); |
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.
Is there any object specifics we can test against?
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.
same as above.
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.
synthetics/__tests__/reporters/json.test.ts
Lines 132 to 163 in 2538c58
traces: [ | |
{ | |
name: 'navigationStart', | |
type: 'mark', | |
start: { | |
us: 3065705158085, | |
}, | |
}, | |
{ | |
name: 'firstContentfulPaint', | |
type: 'mark', | |
start: { | |
us: 3065705560142, | |
}, | |
}, | |
{ | |
name: 'layoutShift', | |
type: 'mark', | |
start: { | |
us: 463045197179, | |
}, | |
score: 0.19932291666666668, | |
}, | |
], | |
metrics: { | |
lcp: { us: 200 }, | |
fcp: { us: 100 }, | |
dcl: { us: 300 }, | |
load: { us: 400 }, | |
cls: 0.123, | |
}, | |
}); |
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.
…a-fleet-heartbeat-synthetics-e2e-tests * upstream/master: [jjbb] for scheduling e2e jobs (elastic#418) docs: release notes for beta.17 (elastic#415) 1.0.0-beta.17 feat: add --playwright-options (elastic#405) fix: ensure timestamps of events are inorder (elastic#413) fix: do not stash `.nvm` folder (elastic#414) deprecate suite-params option over params (elastic#406) fix: end timestamp should reflect duration (elastic#410) docs: release notes for 1.16.0 (elastic#403) 1.0.0-beta.16 fix: revert Playwright to 1.14.0 (elastic#402) docs: release notes for beta 15 (elastic#400) 1.0.0-beta.15 chore: update deps and fix lint issues (elastic#399) fix: handle page close during response event (elastic#398) chore: require node > 14 for usage (elastic#397) fix: fix megabytes to mbps (elastic#394) feat: enable trace as part of rich-events (elastic#387) feat: use events from PW for network data (elastic#372)
--rich-events
flag, all trace level data will be sent asstep/metrics
events to HB.