Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Conversation

@ankur22
Copy link
Collaborator

@ankur22 ankur22 commented Apr 8, 2024

What?

Catch the web vital spans after the page.close API call is made. This should definitely cause the web vitals to emit and be received in time before the sub-test completes.

Why?

Instead of a sleep to wait for a web vital, which is problematic on slower machines that can cause the sub test to fail, catch the web vital spans that are emitted/received when the page.close() API is called.

I've ran the integration tests 10 times and there were no failures with the tracing tests, whereas usually I would get 2-3 failures.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

#1150

@ankur22 ankur22 requested a review from inancgumus April 8, 2024 12:54
Copy link
Collaborator

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

Instead of a sleep to wait for a web vital, which may be delayed for
various reasons, and can cause the sub test to fail, catch the web
vital spans that are emitted/received when the page.close() API is
called.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants