Open Bug 1852468 Opened 1 year ago Updated 1 year ago

test browser_ext_compose_begin_forward.js relies on content of MessageGenerator messages

Categories

(Thunderbird :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: benc, Unassigned)

Details

There's a message-forwarding test in browser_ext_compose_begin_forward.js, which seems to rely on knowing the exact size and content of a previous message which was auto-generated:

https://searchfox.org/comm-central/source/mail/components/extensions/test/browser/browser_ext_compose_begin_forward.js#169

The setup() phase uses createMessages(), which uses MessageGenerator() to create messages. MessageGenerator is 'random' but deterministic. So the message will be consistant across runs, but it doesn't make any guarantees about what the message actually contains.
So relying on specific message contents seems like a bad move...
This test shouldn't start failing if the implementation of MessageGenerator changes.

Summary: browser_ext_compose_begin_forward.js relies on content of MessageGenerator messages → test browser_ext_compose_begin_forward.js relies on content of MessageGenerator messages
You need to log in before you can comment on or make changes to this bug.