summaryrefslogtreecommitdiff
path: root/tests/Selenium/Mail/Compose.php
blob: e707ef17db455a4758ae1cedddda2a5064ee3acb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
    }
}