test('a moved card retains its current editing mode', (assert) => {
  const mobiledoc = Helpers.mobiledoc.build(({post, markupSection, cardSection}) => {
    return post([
      markupSection(),
      cardSection('simple-card')
    ]);
  });

  editor = new Editor({mobiledoc, cards: [simpleCard]});
  editor.render(editorElement);

  assert.hasNoElement('#edit-button', 'precond - card is not in edit mode');

  let card = editor.post.sections.tail;
  editor.editCard(card);

  assert.hasElement('#edit-button', 'precond - card is in edit mode');

  editor.run(postEditor => {
    let card = editor.post.sections.tail;
    postEditor.moveSectionUp(card);
  });

  assert.hasElement('#edit-button', 'card is still in edit mode');
});