Skip to content

tests: cleanup tests#717

Merged
mxschmitt merged 1 commit intomicrosoft:masterfrom
mxschmitt:master
May 24, 2021
Merged

tests: cleanup tests#717
mxschmitt merged 1 commit intomicrosoft:masterfrom
mxschmitt:master

Conversation

@mxschmitt
Copy link
Copy Markdown
Contributor

@mxschmitt mxschmitt commented May 24, 2021

return stack


def capture_call_stack() -> List[Dict]:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this was unused

browser_server = await browser_type.launch(
**launch_arguments, args=[f"--remote-debugging-port={port}"]
)
wait_for_port(port)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We upstream wait now if the --remote-debugging-port arg is passed until the websocket server is ready.

page = await context.new_page()
await page.goto(server.PREFIX + "/grid.html")
await context.tracing.stop()
await page.wait_for_timeout(100)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we have this upstream? Perhaps make it 1000?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried to repro it upstream, but wasn't successful with it, will investigate further in a follow-up.

@mxschmitt mxschmitt merged commit 633d881 into microsoft:master May 24, 2021
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.

2 participants