chore(deps): Update playwright to 1.50.0#15164
Conversation
❌ 3 Tests Failed:
View the top 3 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
|
Hmm, looking some more into this 😬 it seems that Firefox has finally implemented |
| transportOptions: { | ||
| fetchOptions: { | ||
| // See: https://github.com/microsoft/playwright/issues/34497 | ||
| keepalive: false, |
There was a problem hiding this comment.
Important note: This is apparently a bug in playwright/firefox 🤔 I opened an issue here: microsoft/playwright#34497 but this seems to fix it. I tried to reproduce this in a regular FF instance, and it seems that Sentry data is correctly sent, but cannot be inspected. Possibly this interferes with PW abilities to intercept stuff too.
size-limit report 📦
|
| data: { | ||
| 'browser.script.invoker': 'BUTTON#clickme.onclick', | ||
| 'browser.script.invoker_type': 'event-listener', | ||
| 'code.filepath': 'https://example.com/path/to/script.js', |
There was a problem hiding this comment.
this is new, but seems correct to me!
| data: { | ||
| 'browser.script.invoker': 'BUTTON#clickme.onclick', | ||
| 'browser.script.invoker_type': 'event-listener', | ||
| 'code.filepath': 'https://example.com/path/to/script.js', |
There was a problem hiding this comment.
this is new, but seems correct to me!
There was a problem hiding this comment.
Probably came from the browser version bump 🤔
| // renderTime is 0 because we don't return the `Timing-Allow-Origin` header | ||
| // and the image is loaded from a 3rd party origin | ||
| expect(eventData.contexts?.trace?.data?.['lcp.renderTime']).toBe(0); | ||
| expect(eventData.contexts?.trace?.data?.['lcp.renderTime']).toBeGreaterThan(0); |
There was a problem hiding this comment.
I think this change can be attributed to browsers now exposing renderTime even without the timing-allow-origin header: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceElementTiming/renderTime#cross-origin_image_render_time
Which makes me think that we can probably merge both tests in this file. Feel free to do in this PR, otherwise I can also do it in a follow-up PR.
There was a problem hiding this comment.
ah, I see. I'll merge these then, apparently that changed in chromium versions here!
| // renderTime is 0 because we don't return the `Timing-Allow-Origin` header | ||
| // and the image is loaded from a 3rd party origin | ||
| expect(eventData.contexts?.trace?.data?.['lcp.renderTime']).toBe(0); | ||
| expect(eventData.contexts?.trace?.data?.['lcp.renderTime']).toBeGreaterThan(0); |
There was a problem hiding this comment.
I think this change can be attributed to browsers now exposing renderTime even without the timing-allow-origin header: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceElementTiming/renderTime#cross-origin_image_render_time
Which makes me think that we can probably merge both tests in this file. Feel free to do in this PR, otherwise I can also do it in a follow-up PR.
3943ca4 to
f5550b7
Compare
| if (process.env.CI) { | ||
| console.log('::endgroup::'); | ||
| } | ||
| return paths.map(p => `${path.dirname(p)}/`); |
There was a problem hiding this comment.
this was a bit buggy - e.g. if one dirname was suites/tracing/metrics/web-vitals/test.ts, it would have made it to suites/tracing/metrics/web-vitals, which then in turn also matches e.g. web-vitals-cls etc. dirs. Now, it should be stricter in that regard.
| return paths.map(p => path.dirname(p)); | ||
| } | ||
|
|
||
| function logError(error: unknown) { |
| try { | ||
| const content = fs.readFileSync(path.join(process.cwd(), testPath, 'test.ts'), 'utf-8'); | ||
| const matches = content.match(/it\(|test\(|sentryTest\(/g); | ||
| const matches = content.match(/sentryTest\(/g); |
There was a problem hiding this comment.
we always use sentryTest, so no need to check others here IMHO
b0b2f85 to
6865dc2
Compare
Also align to use the same version everywhere, tilde-restricted.
6865dc2 to
aaac579
Compare
Also align to use the same version everywhere, tilde-restricted.