Writing Mochitest Tests
Tips on writing Mochitest tests for Thunderbird.
Adding a New Test
add_task(async () => {
// The code for the test goes here.
});Helper Functions
const { mailTestUtils } = ChromeUtils.import(
"resource://testing-common/mailnews/MailTestUtils.jsm"
);Assertion Functions
Mouse Clicks
Keyboard Keys
Modifier Keys (Ctrl, Alt, Shift)
Waiting for Events
Letting Thunderbird Respond Before Proceeding
Interacting with Regular Windows
Interacting with Dialog Windows
Interacting with Trees
Last updated
Was this helpful?

