This test used an ambiguous condition to determine whether the editor
for a header field has closed and the focus switched back to the list of
attachments. Most times this didn't cause any problems. However
sometimes, this caused the test to fail with the editor still open,
since the condition was already met.
This swaps the two conditions around: first assert that the focus has
changed to the attachment list. Then assert that the field has the
additional text entered.
This test used an ambiguous condition to determine whether the editor for a header field has closed and the focus switched back to the list of attachments. Most times this didn't cause any problems. However sometimes, this caused the test to fail with the editor still open, since the condition was already met.
This swaps the two conditions around: first assert that the focus has changed to the attachment list. Then assert that the field has the additional text entered.
Fixes https://github.com/purebred-mua/purebred/issues/383