Closed Bug 1131223 Opened 10 years ago Closed 10 years ago

Add teardown to Firefox Puppeteer's test_windows to prevent cascade of errors/failures

Categories

(Testing :: Firefox UI Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla38

People

(Reporter: galgeek, Assigned: galgeek, Mentored)

Details

Attachments

(1 file)

51 bytes, text/x-github-pull-request
whimboo
: review-
whimboo
: review+
Details | Review
Tests in test_windows.py should use a teardown to close all windows at test end. Tests occasionally fail because currently they do not.
Assignee: nobody → galgeek
If this is a problem intermittently our tests are subtly broken and need to be fixed. If this is desirable for cases a test fails so that errors don't cascade to further tests, we should automatically fail the test if windows were leaked in addition to performing the cleanup so this doesn't end up papering over problematic tests.
Summary: Add teardown to Firefox Puppeteer's test_windows.py including self.windows.close_all() → Add teardown to Firefox Puppeteer's test_windows to prevent cascade of errors/failures
I wonder if it would be better for the close_all function itself to take care of preserving the browser window that must remain open for tests to continue.
Attachment #8561792 - Flags: review?(hskupin)
Comment on attachment 8561792 [details] [review] github_pull_request.txt It's close, but needs some more tweaks.
Attachment #8561792 - Flags: review?(hskupin) → review-
Comment on attachment 8561792 [details] [review] github_pull_request.txt Thanks for your feedback! I've updated the github PR.
Attachment #8561792 - Flags: review?(hskupin)
Attachment #8561792 - Flags: review?(hskupin) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
Product: Mozilla QA → Testing
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: