Aleksander Machniak
2016-03-28 46f7b7096450939fe03c95aa81ce06ae4bfca89d
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);
    }
}