Open Bug 1957487 Opened 23 days ago Updated 2 days ago

Add tests to cover the folders manual sorting feature

Categories

(Thunderbird :: Folder and Message Lists, task, P2)

Tracking

(thunderbird_esr128 unaffected)

Tracking Status
thunderbird_esr128 --- unaffected

People

(Reporter: aleca, Unassigned)

References

Details

We should implement both xpcshell and browser tests to properly cover the new manual sorting folder feature to ensure it works well and it doesn't break unexpectedly.

At least the following tests would be good, I think.

  1. Drag a folder and drop it in the middle of the target folder that is at the same level -> as before, the dropped folder becomes a subfolder of the target folder.
  2. Drag a folder and drop it slightly below the top of the target folder that is in the same hierarchy -> the dropped folder will be in the order immediately before (above) the target folder.
  3. Drag a folder and drop it slightly above the bottom of the target folder that is in the same hierarchy -> the dropped folder will be immediately after (below) the target folder.
  4. Drag a folder and drop it slightly below the top of the target folder that is in a different hierarchy -> the dropped folder will be in the order immediately before (above) the target folder.
  5. Drag a folder and drop it slightly above the bottom of the target folder that is in a different hierarchy -> the dropped folder will be immediately after (below) the target folder.

I imagine that we could extend comm\mail\test\browser\folder-pane\browser_folderPaneDragDrop.js, but I don't know how.

Correction. The tests should be added to: comm/mail/base/test/browser/browser_dragDropFolders.js

You need to log in before you can comment on or make changes to this bug.