fix tests that don't work with --headless
Categories
(Thunderbird :: General, defect)
Tracking
(thunderbird_esr153 wontfix, thunderbird161 wontfix)
People
(Reporter: mkmelin, Assigned: mkmelin)
Details
(Keywords: leave-open)
Attachments
(38 external files)
We have a fair amount of tests that do not work with --headless.
This is getting increasingly annoying. Going to use this bug to track down and address those failures.
| Assignee | ||
Comment 1•17 days ago
|
||
Scroll the email form fields into view before clicking them in Account Hub tests.
In small windows, such as the headless default of 1366x768, the email form of
the Account Hub scrolls and the footer covers its end. A click on the email
field could then hit the footer menu instead, leaving the field unfocused, and
subtest_fill_initial_config_fields waited forever for its input event.
| Assignee | ||
Comment 2•17 days ago
|
||
Scroll the name and email fields into view before clicking them in these tests.
The email form scrolls in the headless window and the footer covers its end,
so clicks on the email field could hit the footer instead. The placeholder test
then waited forever for the email input event, and test_account_email_step
never got the email field touched, so its error wasn't shown.
| Assignee | ||
Updated•16 days ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/7694b784a512
Make mail/test/browser/account/browser_accountHubSyncAccounts.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/223026132bec
Make mail/test/browser/account/browser_accountHub.js and browser_accountHubPlaceholder.js work with --headless. r=tobyp
| Assignee | ||
Comment 4•13 days ago
|
||
Skip test_restoresWindowAndReturnsFocus in headless runs.
Minimizing a headless window only records the size mode; the window is not
hidden and keeps focus, so the test waited for a focus loss that never came
and left the following task without a focused window.
| Assignee | ||
Comment 5•13 days ago
|
||
Finish scrolling to the selected row before clicking its twisty.
In the smaller headless window the thread pane can't fit every card, so
expanding all threads scrolls the tree to the bottom and selecting row 5
smooth-scrolls back up. The twisty click landed mid-scroll and missed, and
the test waited forever for a select event.
| Assignee | ||
Comment 6•13 days ago
|
||
Scroll folder rows into view before clicking them.
The test's folder list is longer than the folder pane of the smaller headless
window, so clicks on rows near the end, such as the unified folder, missed and
the test waited forever for the context menu to open.
| Assignee | ||
Comment 7•13 days ago
|
||
Don't report moz-icon: URLs as missing in Linux headless runs.
The GTK icon channel returns NS_ERROR_NOT_AVAILABLE for every icon when
headless, so the stock dialog icons referenced from global.css were reported
as missing files.
| Assignee | ||
Comment 8•13 days ago
|
||
Scroll the advanced configuration button and the max results input into view
before clicking them.
The LDAP form scrolls within a height derived from the viewport, and in the
smaller headless window these elements are clipped, so clicks hit the page
behind them and the test waited for form changes that never happened.
| Assignee | ||
Updated•12 days ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/fc952b3cf8e8
Make mail/base/test/browser/browser_oAuth2ExternalBrowser.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/bdc6e6a4bda0
Make mail/base/test/browser/browser_threadTreeQuirks.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/4139c479ea69
Make mail/base/test/browser/menus/browser_folderPaneContext.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/ce2ddac0a4f9
Make mail/base/test/browser/static/browser_parsable_css.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/d5b3bd2d3fab
Make mail/components/accountcreation/test/browser/browser_accountHubAddressBookLdapAccountForm.js work with --headless. r=tobyp
| Assignee | ||
Comment 10•12 days ago
|
||
Scroll the Account Central links into view before clicking them.
In the smaller headless window the links at the end of the page are below
the fold, so clicks at their centre missed and no URL was opened.
| Assignee | ||
Comment 11•12 days ago
|
||
Account for the font size when checking table row heights, and skip
test_copy in headless runs.
Table rows are at least as tall as the font size times the line height, and
the headless default font made compact rows 20px rather than the hard-coded
18px. The headless clipboard only stores text, HTML and images, so the
text/vcard data test_copy waits for never appears.
| Assignee | ||
Comment 12•12 days ago
|
||
Scroll the "maybe" response label into view before clicking it.
In the smaller headless window the acceptance widget ends up below the
viewport, so the click missed and test_userAttendanceResponse waited forever
for the setEventResponse event.
| Assignee | ||
Comment 13•12 days ago
|
||
Scroll the first thread tree row into view before opening its context menu.
In the smaller headless window, selecting the last messages scrolls the first
row out of the thread pane, so the context click missed and
test_getSelectedMessagesWithOpenContextMenu waited forever for the menu.
| Assignee | ||
Comment 14•12 days ago
|
||
There is no GTK drag service in headless mode, so the drag service lookup in
showTooltip throws and tooltips for remote browsers are never shown. The test
then times out waiting for the first tooltip.
| Assignee | ||
Comment 15•12 days ago
|
||
Wait for the restored window to get focus before expecting its notification.
The scheduler only shows a notification in the focused window. A window
manager activates a window when it's restored, but in headless runs the new
window kept focus, so the notification never appeared in the restored one.
| Assignee | ||
Updated•12 days ago
|
Comment 16•12 days ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/3340e42aa65a
Make mail/base/test/browser/browser_accountCentral.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/d48b1dcaeb46
Make mail/components/addrbook/test/browser/browser_contact_tree.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/7e36cdf8d94f
Make mail/components/calendar/test/browser/browser_calendarDialog.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/67b49ef38c44
Make mail/components/extensions/test/browser/browser_ext_mailTabs_mv3.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/7d168f20e1ad
Skip mail/components/extensions/test/browser/browser_ext_tooltip_in_extension_pages.js in Linux headless runs. r=tobyp
https://hg.mozilla.org/comm-central/rev/2268eb700b07
Make mail/components/inappnotifications/test/browser/browser_inAppNotificationSchedulerMultiWindow.js work with --headless. r=tobyp
| Assignee | ||
Comment 17•12 days ago
|
||
Scroll the authentication select into view before clicking it.
In the smaller headless window the select is clipped by the scrolling form,
so the click missed and the test waited forever for the select popup.
| Assignee | ||
Comment 18•12 days ago
|
||
Scroll the two-row card style option into view before clicking it, and the
horizontal scroll checkbox before each click on it.
In the smaller headless window these controls end up below the viewport,
the checkbox again after its first toggle, so clicks on them missed.
| Assignee | ||
Comment 19•12 days ago
|
||
Scroll the QR export buttons into view before every click.
Only some of the clicks scrolled their button into view first. In the smaller
headless window the start button of the other tasks was below the viewport,
so they waited forever for the QR codes to be shown. Use one helper for all
the button clicks.
| Assignee | ||
Comment 20•12 days ago
|
||
Scroll the new local address book option into view before clicking it.
In the smaller headless window the option is clipped by the scrolling Account
Hub content, so the click missed and the local address book form never
became visible.
| Assignee | ||
Updated•12 days ago
|
Comment 21•11 days ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/2246a346facf
Make mail/components/accountcreation/test/browser/browser_accountHubEmailExchangeType.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/8a6a44ea40a1
Make mail/components/preferences/test/browser/browser_appearance.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/9889ba36e8d7
Make mail/components/preferences/test/browser/browser_qrExport.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/026ae78365db
Make mail/test/browser/account/browser_accountHubAb.js work with --headless. r=tobyp
| Assignee | ||
Comment 22•11 days ago
|
||
Don't check that moz-icon: attachment icons load in Linux headless runs.
The GTK icon channel returns NS_ERROR_NOT_AVAILABLE for every icon when
headless, so the text attachment icon was always broken.
| Assignee | ||
Comment 23•11 days ago
|
||
Skip test_file_attachment_icon_with_space in Linux headless runs.
The GTK icon channel returns NS_ERROR_NOT_AVAILABLE for every icon when
headless, so the moz-icon: attachment icon this task checks never loads.
| Assignee | ||
Comment 24•11 days ago
|
||
There is no GTK drag service in headless mode, so the synthesized pill drags
never start.
| Assignee | ||
Comment 25•11 days ago
|
||
There is no GTK drag service in headless mode, so the test's drag service
lookup throws before any task runs.
| Assignee | ||
Comment 26•11 days ago
|
||
Scroll the about:buildconfig link into view before clicking it.
In the smaller headless window the link is below the fold, so the click
missed and test_open_links_in_about_support waited forever for a new tab.
| Assignee | ||
Comment 27•11 days ago
|
||
Scroll the thread tree row into view in select_control_click_row and
select_shift_click_row, as select_click_row already does.
In the smaller headless window the thread pane shows fewer rows, so modifier
clicks on rows further down missed and the expected messages were never
added to the selection.
| Assignee | ||
Updated•11 days ago
|
Comment 28•11 days ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/83a03d0b22f0
Make mail/test/browser/attachment/browser_attachmentIcon.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/60a3883d7676
Make mail/test/browser/composition/browser_attachment.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/a567f16e74c9
Skip mail/test/browser/composition/browser_pillDragCrossWindow.js in Linux headless runs. r=tobyp
https://hg.mozilla.org/comm-central/rev/332d19c7c2a1
Skip mail/test/browser/folder-pane/browser_folderPaneDragDrop.js in Linux headless runs. r=tobyp
https://hg.mozilla.org/comm-central/rev/fc594403e506
Make mail/test/browser/content-tabs/browser_aboutSupport.js work with --headless. r=tobyp
https://hg.mozilla.org/comm-central/rev/ce4cf124aa47
Make browser_deletionWithMultipleDisplays.js and browser_junkCommands.js work with --headless. r=tobyp
| Assignee | ||
Comment 29•10 days ago
|
||
Wait for the expanded rows in the view rather than for row 8 to be rendered.
The thread pane of the smaller headless window doesn't reach row 8, so the
tree never created its element. mouseSelect already scrolls to each row it
clicks.
| Assignee | ||
Comment 30•10 days ago
|
||
Scroll thread tree rows into view before opening their context menu in
testSyntheticFolder.
In the smaller headless window row 3 is outside the thread pane once row 4
is selected, so the context click missed and the menu never opened.
| Assignee | ||
Comment 31•10 days ago
|
||
Aim synthesized mouse events half a pixel into the splitter, and move the
vertical splitters away from the top of the page.
In the headless window the content browser sits at a fractional offset
(124.35px), so synthesized mouse events, which are rounded to device pixels,
arrive 0.35px early. A mousedown on the top edge of a vertical splitter then
hit the pane above it, and the splitter of the vertical "after" container,
which overflows above the container at its largest size, was outside the
viewport.
| Assignee | ||
Comment 32•10 days ago
|
||
Scroll form elements into view before clicking them.
In the smaller headless window the manual incoming form scrolls, and the
username field was clipped, so the click missed and the test waited forever
for it to get focus. Scroll before all the clicks in the form.
| Assignee | ||
Comment 33•10 days ago
|
||
Scroll elements of the import tab into view before clicking them.
In the smaller headless window the Next button of the address book import is
below the fold, so the click missed and the field map pane never appeared.
Scroll before all the clicks in the import tab.
| Assignee | ||
Comment 34•10 days ago
|
||
Constrain the dialog container to 300px instead of 200px in
test_bodyScrollsWhenContentIsTooTall.
With the headless default font the dialog header and footer together are
taller than a dialog that fits in 200px, so the footer overflowed the dialog
however far the body scrolled.
| Assignee | ||
Comment 35•10 days ago
|
||
Scroll the thread tree row into view before opening its context menu.
In the smaller headless window the row could be outside the thread pane, so
the context click missed and test_context_click_in_threadpane waited forever
for the menu.
| Assignee | ||
Comment 36•10 days ago
|
||
Don't expect an onFocusChanged event for WINDOW_ID_NONE when switching
windows in headless runs.
On Linux the window manager takes focus away from the old window before the
new one gets it, which the test expects. Without a window manager focus
moves directly, as on Mac and Windows. Tell the extension whether the run is
headless so it can treat it like those platforms.
| Assignee | ||
Comment 37•10 days ago
|
||
Headless mode reports no GTK client-side decoration buttons, so the
-moz-gtk-csd-close-button media query doesn't match and the titlebar window
controls the test checks are hidden.
| Assignee | ||
Comment 38•10 days ago
|
||
Scroll the delete model radio buttons into view before clicking them.
In the smaller headless window the IMAP delete model options are below the
fold of the server settings, so the clicks missed and the delete model never
changed.
| Assignee | ||
Comment 39•10 days ago
|
||
Scroll the advanced configuration button into view before clicking it.
In the smaller headless window the LDAP form scrolls and the button is
clipped, so the click missed and the advanced form was never shown.
| Assignee | ||
Comment 40•10 days ago
|
||
Scroll Account Hub form elements into view before clicking them.
The Account Hub forms scroll in the smaller headless window, with the footer
covering their end, so clicks on fields and buttons further down missed and
the first task waited forever. Footer buttons are always visible and are
left as they are.
| Assignee | ||
Comment 41•10 days ago
|
||
Check that the ignored thread is still in the view, rather than on screen.
The test wants to know that ignoring a thread doesn't hide it until the
folder is reloaded. In the smaller headless window the thread pane scrolls to
the next thread, which moves the ignored thread's root out of the visible
rows, so assert_visible failed.
| Assignee | ||
Comment 42•10 days ago
|
||
Hide the message pane while the test runs.
In the smaller headless window the message pane leaves the thread pane only
110px, less than the quick filter bar needs, so the message pane splitter
covered the text constraint buttons and clicks on them hit the splitter.
| Assignee | ||
Comment 43•10 days ago
|
||
Wait for the thread tree rows to be rendered before checking them, and
scroll to a row before opening its context menu.
In headless runs the rows weren't there yet one animation frame after the
view changed, so getRowAtIndex returned null.
Comment 44•9 days ago
|
||
Comment 45•9 days ago
|
||
Description
•