/**
  * Overview:
  *
  * - Selects and marks a message in the Inbox folder using option "Mover para
  *   Modelos" of the option menu to move the message to that folder. Checks if
  *   the message is no longer in Inbox and is now in Modelos folder.
  *
  * - CTV3-755
  *   http://comunidadeexpresso.serpro.gov.br/testlink/linkto.php?tprojectPrefix=CTV3&item=testcase&id=CTV3-755
  *
  */
 public function test_CTV3_755_Move_Mail()
 {
     $mailPage = new MailPage($this);
     //load test data
     $MAIL_RECIPIENT = $this->getGlobalValue('user.1.email');
     $MAIL_SUBJECT = $this->getTestValue('mail.subject');
     //testStart
     $mailPage->sendMail(array($MAIL_RECIPIENT), $MAIL_SUBJECT, 'Move email to Modelos folder');
     $this->waitForAjaxAndAnimations();
     $mailPage->clickRefreshButton();
     $mailPage->waitForEmailToArrive($MAIL_SUBJECT);
     $headlinesEntry = $mailPage->getHeadlinesEntryBySubject($MAIL_SUBJECT);
     $headlinesEntry->toggleCheckbox();
     $mailPage->clickMenuOptionMove('Modelos');
     $this->waitForAjaxAndAnimations();
     $headlinesEntry = $mailPage->getHeadlinesEntryBySubject($MAIL_SUBJECT);
     $this->assertNull($headlinesEntry, 'A mail with subject $MAIL_SUBJECT was moved, it could still be found in the inbox folder');
     $mailPage->clickOnFolderByName('Modelos');
     $this->waitForAjaxAndAnimations();
     $headlinesEntry = $mailPage->getHeadlinesEntryBySubject($MAIL_SUBJECT);
     $this->assertNotNull($headlinesEntry, 'A mail with subject $MAIL_SUBJECT was moved, but it could not be found on Modelos folder');
 }