Open Bug 532915 Opened 15 years ago Updated 2 years ago

Add mochitest test for "edit message as new" in compose window

Categories

(Thunderbird :: Message Compose Window, defect)

defect

Tracking

(Not tracked)

People

(Reporter: Bienvenu, Unassigned, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [lang=js][has draft patch])

Attachments

(1 file, 1 obsolete file)

Attached patch add start of tests (obsolete) — Splinter Review
We don't seem to have any tests for the compose window. So this is a start...The attached tests don't work because, for some reason, the compose window thinks the window is dirty, and puts up a modal dialog when I try to close it. It doesn't do this when I do the exact same steps in the UI, so it's probably some mozmill oddity that will take a couple days to track down.
So I've actually got small set of tests in bug 491921 that have done some compose window tests and have created a helper file for some of the functions (named slightly different to yours).

We should try and merge, although mine are still waiting on dmose's review at the moment...
Yeah, we should merge these once dmose reviews it and it lands. I'm hoping all the timer stuff in wait_for_compose_window helps with the modal dialog on compose window close.
Depends on: 491921
this almost works - I still get a close dialog when closing the edit message as new compose window, but we can worry about that when we merge with Standard8's patch.
Attachment #416088 - Attachment is obsolete: true
Assignee: mozilla → nobody
Flags: in-testsuite?
Whiteboard: [patchlove][has draft patch]
Magnus, can you see if this patch is of any value today? There seem to be some compose tests in mail/test/mozmill/composition (not compose-window as in the patch). Maybe this is already covered?
It's mostly obsolete. However we don't have a open_compose_window_with_edit in test-compose-helpers.js so we could add a small test that "Edit Messaege as New" works.
OK, how do we know it worked?
Assignee: nobody → acelists
We could just do the basics: check that the window comes up and that the content is what expected, attachments are there (if in original).
Assignee: acelists → syshagarwal
OS: Windows 7 → All
Hardware: x86 → All
Whiteboard: [patchlove][has draft patch] → [good first bug][mentor=aceman][lang=javascript][has draft patch]
Summary: Add mozmill tests for compose window → Add mozmill test for "edit message as new" in compose window
Mentor: acelists
Whiteboard: [good first bug][mentor=aceman][lang=javascript][has draft patch] → [good first bug][lang=javascript][has draft patch]
Whiteboard: [good first bug][lang=javascript][has draft patch] → [good first bug][lang=js][has draft patch]
Assignee: syshagarwal → nobody
Keywords: good-first-bug
Whiteboard: [good first bug][lang=js][has draft patch] → [lang=js][has draft patch]
Summary: Add mozmill test for "edit message as new" in compose window → Add mochitest test for "edit message as new" in compose window
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: