Aleksander Machniak
2016-05-06 acf633c73bc8df9a5036bc52d7568f4213ab73c7
tests/Selenium/Mail/Compose.php
New file
@@ -0,0 +1,25 @@
<?php
class Selenium_Mail_Compose extends Selenium_Test
{
    public function testCompose()
    {
        $this->go('mail', 'compose');
        // check task and action
        $env = $this->get_env();
        $this->assertEquals('mail', $env['task']);
        $this->assertEquals('compose', $env['action']);
        $objects = $this->get_objects();
        // these objects should be there always
        $this->assertContains('qsearchbox', $objects);
        $this->assertContains('addressbookslist', $objects);
        $this->assertContains('contactslist', $objects);
        $this->assertContains('messageform', $objects);
        $this->assertContains('attachmentlist', $objects);
        $this->assertContains('filedrop', $objects);
        $this->assertContains('uploadform', $objects);
    }
}