mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-25 01:36:06 +08:00
f6e48ea7e4
Summary: We need to wait for the `DraftEditingSession` to set it's draft before we can pass it to the composer. I've modified these tests to properly wait for the draft promise. Additionally, I removed the `DraftStore.isSendingDraft()` stub so we run the actual logic for determing if a draft can be sent. We had some tests with this stub, but then we had other tests that made sure it worked without the stub, and I don't see why we don't just run the tests without the stub to begin with. I added a stub to `@session.ensureCorrectAccount()` to get around issues with committing the draft's change set. Test Plan: Ran the suite! Reviewers: evan, juan Reviewed By: evan, juan Differential Revision: https://phab.nylas.com/D3834 |
||
---|---|---|
.. | ||
collapsed-participants-spec.cjsx | ||
composer-header-actions-spec.cjsx | ||
composer-header-spec.jsx | ||
composer-view-spec.cjsx | ||
quoted-text-spec.cjsx | ||
send-action-button-spec.jsx |