| | |
| | | |
| | | class Selenium_Mail_List extends Selenium_Test |
| | | { |
| | | protected function setUp() |
| | | { |
| | | parent::setUp(); |
| | | |
| | | bootstrap::init_imap(); |
| | | bootstrap::purge_mailbox('INBOX'); |
| | | |
| | | // import email messages |
| | | foreach (glob(TESTS_DIR . 'Selenium/data/mail/list_00.eml') as $f) { |
| | | bootstrap::import_message($f, 'INBOX'); |
| | | } |
| | | } |
| | | |
| | | public function testList() |
| | | { |
| | | $this->go('mail'); |
| | |
| | | $this->assertHasClass('unread', $row); |
| | | |
| | | $subject = $this->byCssSelector('.messagelist tbody tr:first-child td.subject'); |
| | | $this->assertEquals('Lines', $subject->text()); |
| | | $this->assertEquals('Lines', $this->getText($subject)); |
| | | |
| | | $icon = $this->byCssSelector('.messagelist tbody tr:first-child td.status span'); |
| | | $this->assertHasClass('unread', $icon); |