Rayrun
← Back to Discord Forum

Playwrights gets stuck before HTML test report generation.

lucky_rabbit_44106posted in #help-playwright
Open in Discord
lucky_rabbit_44106

Am facing a weird issue with playwright framework(Typescript) where in it gets stuck after test execution before default HTMl report generation. Observing the same issue in Gitlab CI/CD pipeline as well for the past 1 week across playwright versions 1.35 -- 1.36.2. Can somebody suggest what may be the issue.

This thread is trying to answer question "Why does the Playwright framework get stuck after test execution before generating the default HTML report?"

10 replies
lucky_rabbit_44106

Note there we no changes in code during the timeframe.

What do you mean by stuck? What does console say?

lucky_rabbit_44106

Nothing just timeouts on CI/CD pipeline, While locally need to manually cancel it (Command + C)

image.png

How does config look like? Maye you have very long timeouts?

lucky_rabbit_44106

Nope not using any test timeouts while global timeouts are in 30-40 seconds range.

image.png
image.png
lucky_rabbit_44106

In addition this problem seems to be related to browser not being closed at the test termination as observed when running in headed mode + incase of parallel test execution.

image.png

Do you also manually create browser, context and page in the top of the file?

lucky_rabbit_44106

Yes!!

Might be related to manually createf browsers, contexts and for some reason close are not called

lucky_rabbit_44106

Ack, will continue to debug.

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.