Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continue to run hooks and close session on uncaught errors. #4269

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

garg3133
Copy link
Member

No description provided.

Copy link

Status

  • ❌ No modified files found in the types directory.
    Please make sure to include types for any changes you have made. Thank you!.

@AutomatedTester
Copy link
Member

@reallymello I've heard this isn't working for you. Is it giving the same issue as before or is it acting differently?

@reallymello
Copy link
Contributor

Using this PR we are getting Javascript heap out of memory errors appearing now and most of the scripts in the 39 test parallel run (10 worker threads) time out now whereas 4-8 were before. Tests appear in the "Timeout" bucket in BrowserStack turboscale when no commands are received for 90000ms I believe. This appears to be happening when the test fails and does not execute the test after block where we call browser.end nor does the global Nightwatch session termination fire. When I have been able to reproduce the issue locally the test error is logged, but the browser remains open.

Commonalities so far for tests affected seem to be on async tests when .waitUntilElementVisible is used and the element is not present or various other waitUntil loops checking for conditions fail. I think the issue is less likely to occur if .expect.present is used vs one of the waitUntil type commands is used for synchronization. We are awaiting the command.

@garg3133 garg3133 marked this pull request as draft October 18, 2024 12:13
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.

3 participants