Skip to content

Add helpers and tests#279

Merged
ayjayt merged 4 commits intomainfrom
andrew/helpers
Nov 19, 2025
Merged

Add helpers and tests#279
ayjayt merged 4 commits intomainfrom
andrew/helpers

Conversation

@ayjayt
Copy link
Copy Markdown
Collaborator

@ayjayt ayjayt commented Nov 19, 2025

This adds a set of helpers functions and bugs.

It also makes clear a user footgun: if they navigate to a bad URL, chrome
devtools just freezes, waiting for it to finish loading.

We should install a timeout into create_tab so that this test passes.

@ayjayt
Copy link
Copy Markdown
Collaborator Author

ayjayt commented Nov 19, 2025

The fact that this passes on CI should be taking with a grain of salt, need to test more on local machine.

1. Chrome's security model isn't fully functional when you boot, so starting
   tabs right away like choreographer does might sometimes work and sometimes
   not. In particular, data urls can behave very differently depending on how
   long you wait to create a tab with one:
2. That only applies to Target.createTarget, data urls are fine in all instances
   with page.Navigate.
3. Thanks to AI for poitning out there would be a race condition in early boots,
   would really like to know how it knew that though. Don't see how I ever could
   have resolved that on my own.
4. Page.navigate will freeze itself on a bad resolution, where as creating a tab
   will only show the bad resolution if you are awaiting a page loaded event.
@ayjayt ayjayt merged commit daa6092 into main Nov 19, 2025
4 checks passed
@ayjayt ayjayt deleted the andrew/helpers branch November 19, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant